Module db

Module db 

Source
Expand description

Database connection pooling, SQL execution, and schema migrations runner.

Structs§

TableRow

Functions§

authorize_db_access
close_connections
Close and clear database connections for a deregistered user.
close_connections_in_dir
Close and clear database connections for a deregistered user in storage_dir.
close_databases_under_dir
Evicts and closes cached Database instances residing under dir, freeing their page-cache arenas and releasing open OS file handles.
get_connection
Resolve connection to the database.
get_db_path
Helper to resolve the database path. Consolidates users/ prefix into a single users.db.
get_table_name
Helper to get a safe, valid SQL table name.
sea_values_to_turso
Convert SeaQuery Values to Turso Values.
validate_and_get_user