Operator Families

The operfamily module defines two classes: class OperatorFamily derived from DbSchemaObject and class OperatorFamilyDict derived from DbObjectDict.

Operator Family

OperatorFamily is derived from DbSchemaObject and represents a Postgres operator family, a grouping of related operator classes.

class pyrseas.dbobject.operfamily.OperatorFamily(name, schema, index_method, description, owner, oid=None)

An operator family


Return the key to be used in external maps for the operator family


Return a full identifier for an operator family object

OperatorFamily.create(*args, **kwargs)

Return SQL statements to CREATE the operator family

Returns:SQL statements

Operator Family Dictionary

OperatorFamilyDict is derived from DbObjectDict. It is a dictionary that represents the collection of operator families in a database.

class pyrseas.dbobject.operfamily.OperatorFamilyDict(dbconn=None)

The collection of operator families in a database

OperatorFamilyDict.from_map(schema, inopfams)

Initalize the dict of operator families by converting the input map

  • schema – schema owning the operators
  • inopfams – YAML map defining the operator families