core.orm.types.lowercase_text_type
Attributes
Classes
Text column that forces all text to be lowercase. |
Module Contents
- class core.orm.types.lowercase_text_type.LowercaseText(*args, **kwargs)[source]
Bases:
_Base
Text column that forces all text to be lowercase.
- process_bind_param(value: str | None, dialect: sqlalchemy.engine.interfaces.Dialect) str | None [source]
Receive a bound parameter value to be converted.
Subclasses override this method to return the value that should be passed along to the underlying
TypeEngine
object, and from there to the DBAPIexecute()
method.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.
This operation should be designed with the reverse operation in mind, which would be the process_result_value method of this class.
- Parameters:
value – Data to operate upon, of any type expected by this method in the subclass. Can be
None
.dialect – the
Dialect
in use.