Skip to content

pyaccesskit.schema.compat

pyaccesskit.schema.compat

Storage-type rules shared by pre-validation and the in-memory backend.

storage_type

storage_type(column: ColumnBase) -> str

The engine-level storage type of a column (AutoNumber stores a Long Integer, etc.).

relationship_compatible

relationship_compatible(
    primary: ColumnBase, foreign: ColumnBase
) -> bool

Whether two columns can be paired in a relationship (same storage type, indexable).