Core
SQLiteConnectionState
Bases: pw._ConnectionState
Defaults to make SQLite DB async-compatible (according to FastAPI/Pydantic)
Source code in samudra/conf/database/core.py
get_database(name)
Returns the connection class based on the name.
Source code in samudra/conf/database/core.py
new_database(name, engine, path)
Create and register a SQLite database or just register a database if not SQLite
Source code in samudra/conf/database/core.py
set_active_database(name)
Sets the database as the currently active database