budosystems.xtra.sqlite3_storage.schemata.MetaSchema

class MetaSchema

Bases: type

Metaclass for the SQLite3 schema counterpart of Entity classes.

Inherited Members

  • mro

__init__(cls_name: str, bases: tuple[type, ...], namespace: dict[str, Any])
source_class: type[Entity] | None
property table_name: str

Name of the SQL table corresponding to this schema.

property column_names: list[str]

List of SQL column names corresponding to this schema’s fields.

property select_by_id_query: str

The SQL SELECT query.

property insert_query: str

The SQL INSERT query.

property update_query: str

The SQL UPDATE query.

property upsert_query: str

The SQL query to insert if an entity doesn’t exist, or update if it already exists.

property delete_by_id_query: str

The SQL DELETE query.

property table_definition: str

The SQL CREATE TABLE query.