core.orm.types.lowercase_text_type

Module Contents

Classes

LowercaseText

Text column that forces all text to be lowercase.

Attributes

_Base

core.orm.types.lowercase_text_type._Base[source]
class core.orm.types.lowercase_text_type.LowercaseText(*args, **kwargs)[source]

Bases: _Base

Text column that forces all text to be lowercase.

impl[source]
omparator_factory[source]
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 DBAPI execute() 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.