Operators¶
The operator
module defines two classes: class
Operator
derived from DbSchemaObject
and class
OperatorDict
derived from DbObjectDict
.
Operator¶
Operator
is derived from DbSchemaObject
and
represents a Postgres user-defined operator.
-
class
pyrseas.dbobject.operator.
Operator
(name, schema, description, owner, procedure, leftarg=None, rightarg=None, commutator=None, negator=None, restrict=None, join=None, hashes=False, merges=False, oid=None)¶ An operator
-
Operator.
extern_key
()¶ Return the key to be used in external maps for this operator
Returns: string
-
Operator.
qualname
()¶ Return the schema-qualified name of the operator
Returns: string No qualification is used if the schema is ‘public’.
-
Operator.
identifier
()¶ Return a full identifier for an operator object
Returns: string
-
Operator.
create
(dbversion=None)¶ Return SQL statements to CREATE or REPLACE the operator
Returns: SQL statements
Operator Dictionary¶
OperatorDict
is derived from
DbObjectDict
. It is a dictionary that
represents the collection of operators in a database.
-
class
pyrseas.dbobject.operator.
OperatorDict
(dbconn=None)¶ The collection of operators in a database
-
OperatorDict.
from_map
(schema, inopers)¶ Initialize the dictionary of operators by converting the input map
Parameters: - schema – schema owning the operators
- inopers – YAML map defining the operators