Expand description
journio-postgres — Postgres/CockroachDB backend for journio-core.
Port of the Postgres path of journio/system_database.go.
Structs§
- Postgres
Dialect - Postgres-flavoured dialect. Ported from
postgresDialect(dialect.go:181). - Postgres
System Database - 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 fromrunMigrations(system_database.go:543). - sanitize_
identifier - Quote an identifier the way
pgx.Identifier{}.Sanitize()does — used when rendering schema prefixes outside theDialecttrait (e.g. migrations).