Bases: heat.db.sqlalchemy.types.LongText
Receive a bound parameter value to be converted.
Custom subclasses of _types.TypeDecorator
should override
this method to provide custom behaviors for incoming data values.
This method is called at statement execution time and is passed
the literal Python data value which is to be associated with a bound
parameter in the statement.
The operation could be anything desired to perform custom behavior, such as transforming or serializing data. This could also be used as a hook for validating logic.
value – Data to operate upon, of any type expected by
this method in the subclass. Can be None
.
dialect – the Dialect
in use.
Receive a result-row column value to be converted.
Custom subclasses of _types.TypeDecorator
should override
this method to provide custom behaviors for data values
being received in result rows coming from the database.
This method is called at result fetching time and is passed
the literal Python data value that’s extracted from a database result
row.
The operation could be anything desired to perform custom behavior, such as transforming or deserializing data.
value – Data to operate upon, of any type expected by
this method in the subclass. Can be None
.
dialect – the Dialect
in use.
Bases: sqlalchemy.sql.type_api.TypeDecorator
alias of sqlalchemy.sql.sqltypes.Text
Return a TypeEngine
object corresponding to a dialect.
This is an end-user override hook that can be used to provide
differing types depending on the given dialect. It is used
by the TypeDecorator
implementation of type_engine()
to help determine what type should ultimately be returned
for a given TypeDecorator
.
By default returns self.impl
.
Receive a bound parameter value to be converted.
Custom subclasses of _types.TypeDecorator
should override
this method to provide custom behaviors for incoming data values.
This method is called at statement execution time and is passed
the literal Python data value which is to be associated with a bound
parameter in the statement.
The operation could be anything desired to perform custom behavior, such as transforming or serializing data. This could also be used as a hook for validating logic.
value – Data to operate upon, of any type expected by
this method in the subclass. Can be None
.
dialect – the Dialect
in use.
Receive a result-row column value to be converted.
Custom subclasses of _types.TypeDecorator
should override
this method to provide custom behaviors for data values
being received in result rows coming from the database.
This method is called at result fetching time and is passed
the literal Python data value that’s extracted from a database result
row.
The operation could be anything desired to perform custom behavior, such as transforming or deserializing data.
value – Data to operate upon, of any type expected by
this method in the subclass. Can be None
.
dialect – the Dialect
in use.
Bases: sqlalchemy.sql.type_api.TypeDecorator
alias of sqlalchemy.sql.sqltypes.Text
Return a TypeEngine
object corresponding to a dialect.
This is an end-user override hook that can be used to provide
differing types depending on the given dialect. It is used
by the TypeDecorator
implementation of type_engine()
to help determine what type should ultimately be returned
for a given TypeDecorator
.
By default returns self.impl
.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.