Skip to main content

journio_postgres/
lib.rs

1//! journio-postgres — Postgres/CockroachDB backend for `journio-core`.
2//!
3//! Port of the Postgres path of `journio/system_database.go`.
4
5// See journio-core: `JournioError` is slightly over the `result_large_err`
6// size threshold and boxing it would be a cascading public-API break.
7#![allow(clippy::result_large_err)]
8
9mod dialect;
10mod error;
11mod lib_impl;
12mod migrations;
13
14pub use crate::dialect::{PostgresDialect, sanitize_identifier};
15pub use crate::lib_impl::PostgresSystemDatabase;
16pub use crate::migrations::{latest_version, run_migrations};
17
18pub(crate) use crate::lib_impl::{db_err, pool_err};