Skip to main content

Crate journio_postgres

Crate journio_postgres 

Source
Expand description

journio-postgres — Postgres/CockroachDB backend for journio-core.

Port of the Postgres path of journio/system_database.go.

Structs§

PostgresDialect
Postgres-flavoured dialect. Ported from postgresDialect (dialect.go:181).
PostgresSystemDatabase
Postgres-backed system database. Owns a deadpool connection pool.

Functions§

latest_version
The latest migration version (the last entry in MIGRATIONS).
run_migrations
Run all pending migrations against pool. Ported from runMigrations (system_database.go:543).
sanitize_identifier
Quote an identifier the way pgx.Identifier{}.Sanitize() does — used when rendering schema prefixes outside the Dialect trait (e.g. migrations).