SAReferenceTypeDecorator
- class SAReferenceTypeDecorator(*args: Any, **kwargs: Any)[source]
Bases:
TypeDecoratorA SQLAlchemy type decorator for a
curies.Reference.Construct a
TypeDecorator.Arguments sent here are passed to the constructor of the class assigned to the
implclass level attribute, assuming theimplis a callable, and the resulting object is assigned to theself.implinstance attribute (thus overriding the class attribute of the same name).If the class level
implis not a callable (the unusual case), it will be assigned to the same instance attribute ‘as-is’, ignoring those arguments passed to the constructor.Subclasses can override this to customize the generation of
self.implentirely.Attributes Summary
Set SQLAlchemy caching to true
Methods Summary
process_bind_param(value, dialect)Convert the Python object into a database value.
process_result_value(value, dialect)Convert the database value into a Python object.
Attributes Documentation
Methods Documentation