The operclass module defines two classes: class OperatorClass derived from DbSchemaObject and class OperatorClassDict derived from DbObjectDict.
OperatorClass is derived from DbSchemaObject and represents a PostgreSQL operator class.
An operator class
Return the key to be used in external maps for this operator
| Returns: | string |
|---|
Return a full identifier for an operator class
| Returns: | string |
|---|
Convert operator class to a YAML-suitable format
| Returns: | dictionary |
|---|
Return SQL statements to CREATE the operator class
| Returns: | SQL statements |
|---|
OperatorClassDict is derived from DbObjectDict. It is a dictionary that represents the collection of operator classes in a database.
The collection of operator classes in a database
Initalize the dictionary of operator classes from the input map
| Parameters: |
|
|---|
Generate SQL to transform existing operator classes
| Parameters: | inopcls – a YAML map defining the new operator classes |
|---|---|
| Returns: | list of SQL statements |
Compares the existing operator class definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the operator classes accordingly.