Qore PgsqlSqlUtil Module Reference  1.0
 All Classes Namespaces Functions Variables Groups Pages
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
kthe name of the key to access
Returns
the value of the given key in the contained hash if it exists
Exceptions
KEY-ERRORthe 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