quasar_postgres

Cluster-safe PostgreSQL durable Store.

Types

pub type MigrationError {
  MigrationUnavailable
  Database(pog.QueryError)
}

Constructors

Values

pub fn migrate(
  connection: pog.Connection,
) -> Result(Nil, MigrationError)

Applies the version-one PostgreSQL schema idempotently.

pub fn new(connection: pog.Connection) -> store.Store

Builds a Store backed by an existing Pog connection pool.

The Pog pool remains application-owned and is not stopped when this Store closes. Run migrate once before starting Quasar.

Search Document