glimr_sqlite/http/context/ctx
SQLite HTTP Context
Provides a context for managing SQLite connection pools in
HTTP applications. Use ctx.sqlite.pool for the default
pool and ctx.sqlite.pool_for("name") for named connections.
The default pool is the one with is_default: True set.
Types
Values
pub fn load(
connections: List(driver.Connection),
) -> SqliteContext
Loads SQLite pools from the given connections. Filters to only SQLite connections and starts a pool for each.
Use ctx.sqlite.pool to get the default pool (the one with
is_default: True). Use ctx.sqlite.pool_for("name") to
access other connections by name.