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