Tables

Define typehinted tables in Python as the source of truth for what your tables should look like within your database. These are used by both the typehint signatures, runtime, and the migration logic to enforce your schemas are as you define here.

Tables

CLASSiceaxe.base.TableBase

Class Attributes

  • Name
    model_fields
    Type
    dict[str, DBFieldInfo]
    Description
  • Name
    table_name
    Type
    str
    Description
  • Name
    table_args
    Type
    list[UniqueConstraint | IndexConstraint]
    Description
  • Name
    modified_attrs
    Type
    dict[str, Any]
    Description

Class Methods

  • Name
    get_modified_attributes
    Return type
    dict[str, Any]
    Description
  • Name
    clear_modified_attributes
    Return type
    Description
  • Name
    get_table_name
    Return type
    Description

Constraints

CLASSiceaxe.base.IndexConstraint

Class Attributes

  • Name
    columns
    Type
    list[str]
    Description

CLASSiceaxe.base.UniqueConstraint

Class Attributes

  • Name
    columns
    Type
    list[str]
    Description