Qore PgsqlSqlUtil Module Reference: PgsqlPrimaryKey Class Reference

Qore PgsqlSqlUtil Module Reference 1.0

- Main Page
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | Private Attributes | List of all members
PgsqlPrimaryKey Class Reference

represents a PostgreSQL-specific primary key constraint More...

Inherits AbstractPrimaryKey.

## Public Member Functions
| clearIndex ()
| clears any index base for the constraint
PgsqlColumn | memberGate (string k)
| returns the PgsqlColumn value of the given key if it exists, otherwise throws a `KEY-ERROR` exception More...

## Private Attributes
*string | index
| index the constraint is based on
*string | tablespace
| any tablespace for the primary key index

## Detailed Description

represents a PostgreSQL-specific primary key constraint

## Member Function Documentation

PgsqlColumn PgsqlPrimaryKey::memberGate | ( | string | k | ) |

returns the PgsqlColumn value of the given key if it exists, otherwise throws a `KEY-ERROR` exception

Example:
  my any $v = $c.name;

Parameters

  k | the name of the key to access

Returns
  the value of the given key in the contained hash if it exists

Exceptions

  KEY-ERROR | the given key does not exist in the contained hash

Note
  this method is called automatically when an unknown or inaccessible member name is accessed from outside the class

See Also
  memberGate_methods