Ligare.database.types

Static types for use in type hinting.

Classes

Connection()

MetaBase(classname, bases, dict_, **kw)

TableArgsDict

class Ligare.database.types.Connection[source]
dialect: Dialect
protocol Ligare.database.types.IScopedSessionFactory[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

static create(connection_string, echo=False, execution_options=None, connect_args=None, bases=None)[source]
Return type:

TypeVar(T_scoped_session, bound= scoped_session, covariant=True)

class Ligare.database.types.MetaBase(classname, bases, dict_, **kw)[source]
metadata: MetaData
class Ligare.database.types.TableArgsDict
schema: str | None
protocol Ligare.database.types.TableNameCallback[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__call__(dialect_schema, full_table_name, base_table, meta_base)[source]

Call self as a function.

Return type:

None