pyre.db.FieldReference¶
Module Contents¶
-
class
pyre.db.FieldReference.FieldReference(table, field, **kwds)¶ Bases:
pyre.descriptors.stem.variableA field decorator that encapsulates references to table fields
This class is endowed with the full algebra from {pyre.algebraic} in order to support expressions involving table fields. Such expressions can be used to formulate constraints or to specify fields in views
-
table¶
-
field¶
-
coerce(self, **kwds)¶ Convert {value} into my type
-
project(self, table)¶ Build a reference to the given {table} that points to the same field as i do
-
sql(self, context=None)¶ Convert me into an SQL expression
-