Ligare.database.dependency_injection

Injector dependency injection modules for database connection objects.

Functions

get_database_config_container(config)

get_database_ioc_container(config[, bases])

Classes

ScopedSessionModule([bases])

Configure SQLAlchemy Session depedencies for Injector.

class Ligare.database.dependency_injection.ScopedSessionModule(bases=None)[source]

Configure SQLAlchemy Session depedencies for Injector.

__init__(bases=None)[source]
configure(binder)[source]

Override to configure bindings.

Return type:

None

static get_config_type()[source]
Return type:

type[AbstractConfig]

Ligare.database.dependency_injection.get_database_config_container(config)[source]
Ligare.database.dependency_injection.get_database_ioc_container(config, bases=None)[source]