recomp 0.2.0

Reusable components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Reusable Postgres component and configuration.
//!
//! Enable this module with the `postgres` crate feature.

mod component;
mod config;
mod options;
#[cfg(feature = "testcontainers")]
mod test_container;

pub use ::sqlx::postgres::PgPool;
pub use component::{Postgres, PostgresAccessError, PostgresHealthError, PostgresRunError};
pub use config::{
    Config, ConfigBuilder, ConfigBuilderError, DEFAULT_ACQUIRE_TIMEOUT, DEFAULT_IDLE_TIMEOUT,
    DEFAULT_MAX_CONNECTIONS, DEFAULT_MAX_LIFETIME, DEFAULT_MIN_CONNECTIONS, Password,
};
#[cfg(feature = "testcontainers")]
pub use test_container::{PostgresContainer, PostgresContainerStartError};