simpleml.persistables.base_sqlalchemy
Base class for sqlalchemy
Module Contents
Classes
Base class for all SimpleML database objects. Defaults to PostgreSQL |
|
Shared metadata for all tables that live in the binary storage schema |
|
Shared metadata for all tables that live in the dataset storage schema |
|
Shared metadata for all tables that live in the main schema |
Functions
|
Listen for updates and update modified_timestamp column. |
Attributes
- class simpleml.persistables.base_sqlalchemy.BaseSQLAlchemy[source]
Bases:
Base
,sqlalchemy_mixins.AllFeaturesMixin
Base class for all SimpleML database objects. Defaults to PostgreSQL but can be swapped out for any supported SQLAlchemy backend.
Takes advantage of sqlalchemy-mixins to enable active record operations (TableModel.save(), create(), where(), destroy())
Added some inheritable convenience methods
created_timestamp: Server time on insert modified_timestamp: Server time on update
- class simpleml.persistables.base_sqlalchemy.BinaryStorageSqlalchemy[source]
Bases:
BaseSQLAlchemy
Shared metadata for all tables that live in the binary storage schema
- class simpleml.persistables.base_sqlalchemy.DatasetStorageSqlalchemy[source]
Bases:
BaseSQLAlchemy
Shared metadata for all tables that live in the dataset storage schema
- class simpleml.persistables.base_sqlalchemy.SimplemlCoreSqlalchemy[source]
Bases:
BaseSQLAlchemy
Shared metadata for all tables that live in the main schema