mistral.db.sqlalchemy package

Subpackages

Submodules

mistral.db.sqlalchemy.base module

mistral.db.sqlalchemy.model_base module

class mistral.db.sqlalchemy.model_base.MistralSecureModelBase(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Base class for all secure models.

mistral.db.sqlalchemy.sqlite_lock module

mistral.db.sqlalchemy.types module

class mistral.db.sqlalchemy.types.JsonEncoded(*args, **kwargs)

Bases: sqlalchemy.sql.type_api.TypeDecorator

Represents an immutable structure as a json-encoded string.

impl

alias of Text

process_bind_param(value, dialect)
process_result_value(value, dialect)
class mistral.db.sqlalchemy.types.JsonEncodedLongText(*args, **kwargs)

Bases: mistral.db.sqlalchemy.types.JsonEncoded

class mistral.db.sqlalchemy.types.JsonEncodedMediumText(*args, **kwargs)

Bases: mistral.db.sqlalchemy.types.JsonEncoded

class mistral.db.sqlalchemy.types.MutableList

Bases: sqlalchemy.ext.mutable.Mutable, list

append(value)

Detect list add events and emit change events.

classmethod coerce(key, value)

Convert plain lists to MutableList.

Module contents