The operator module defines two classes: class Operator derived from DbSchemaObject and class OperatorDict derived from DbObjectDict.
Operator is derived from DbSchemaObject and represents a PostgreSQL user-defined operator.
An operator
Return the key to be used in external maps for this operator
Returns: | string |
---|
Return the schema-qualified name of the operator
Returns: | string |
---|
No qualification is used if the schema is ‘public’.
Return a full identifier for an operator object
Returns: | string |
---|
Return SQL statements to CREATE or REPLACE the operator
Returns: | SQL statements |
---|
OperatorDict is derived from DbObjectDict. It is a dictionary that represents the collection of operators in a database.
The collection of operators in a database
Initalize the dictionary of operators by converting the input map
Parameters: |
|
---|
Generate SQL to transform existing operators
Parameters: | inopers – a YAML map defining the new operators |
---|---|
Returns: | list of SQL statements |
Compares the existing operator definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the operators accordingly.