python_template_server.db

Database manager classes for servers using this template.

class python_template_server.db.BaseDatabaseManager[source]

Manager class for database operations.

Subclasses must implement the db_url property to provide the correct database URL. The database manager must be configured using configure() after the server has loaded the configuration.

__init__()[source]

Initialize the database manager.

configure(db_config)[source]

Configure the database manager with the given configuration.

Return type:

None

abstract property db_url: str

Get the database URL using the DatabaseConfig.db_url() method.

Modules

base_database_manager

SQLModel database module.