Ligare.database.config

Ligare.database’s integration with Ligare.programming.config.

Classes

Config()

DatabaseConfig(**data)

DatabaseConnectArgsConfig(**data)

PostgreSQLDatabaseConnectArgsConfig(**data)

SQLiteDatabaseConnectArgsConfig(**data)

class Ligare.database.config.Config[source]
database: DatabaseConfig
post_load()[source]
Return type:

None

class Ligare.database.config.DatabaseConfig(**data)[source]
__init__(**data)[source]
connect_args: DatabaseConnectArgsConfig | None = None
connection_string: str = 'sqlite:///:memory:'
post_load()[source]
Return type:

None

sqlalchemy_echo: bool = False
class Ligare.database.config.DatabaseConnectArgsConfig(**data)[source]
model_config: ClassVar[ConfigDict] = {'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class Ligare.database.config.PostgreSQLDatabaseConnectArgsConfig(**data)[source]
model_config: ClassVar[ConfigDict] = {'extra': 'ignore'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

options: str
sslmode: str
class Ligare.database.config.SQLiteDatabaseConnectArgsConfig(**data)[source]
model_config: ClassVar[ConfigDict] = {'extra': 'ignore'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].