Struct salak_factory::PostgresConfig[][src]

pub struct PostgresConfig { /* fields omitted */ }
This is supported on crate feature enable_postgres only.

Postgres Connection Pool Configuration.

propertyrequireddefault
postgresql.urlfalsepostgresql://postgres@localhost
postgresql.hostfalse
postgresql.portfalse
postgresql.userfalse
postgresql.passwordfalse
postgresql.dbnamefalse
postgresql.optionsfalse
postgresql.application_namefalse
postgresql.connect_timeoutfalse1s
postgresql.keepalivesfalse
postgresql.keepalives_idlefalse
postgresql.must_allow_writefalsetrue
postgresql.channel_bindingfalse
postgresql.pool.max_sizefalse${pool.max_size:}
postgresql.pool.min_idlefalse${pool.min_idle:}
postgresql.pool.thread_namefalse${pool.thread_name:}
postgresql.pool.thread_numsfalse${pool.thread_nums:}
postgresql.pool.test_on_check_outfalse${pool.test_on_check_out:}
postgresql.pool.max_lifetimefalse${pool.max_lifetime:}
postgresql.pool.idle_timeoutfalse${pool.idle_timeout:}
postgresql.pool.connection_timeoutfalse${pool.connection_timeout:5s}
postgresql.pool.wait_for_initfalse${pool.wait_for_init:false}

Trait Implementations

impl AutoDeriveFromEnvironment for PostgresConfig[src]

impl Buildable for PostgresConfig[src]

type Product = Pool<PostgresConnectionManager<NoTls>>

Target product.

type Customizer = PostgresCustomizer

Customize when building.

impl Debug for PostgresConfig[src]

impl FromEnvironment for PostgresConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,