glimr_postgres/postgres

PostgreSQL Connection Management

This module provides postgres database connection management for Glimr. It handles the initialization and configuration of postgres connection pools, enabling applications to efficiently manage database connections.

Values

pub fn start(
  name: String,
  connections: List(driver.Connection),
) -> pool.Pool

Starts a PostgreSQL connection pool with the specified configuration. Searches through the provided connections list to find a matching connection by name, then initializes and returns a database pool using that configuration.

Search Document