Struct salak_factory::PostgresConfig [−][src]
pub struct PostgresConfig { /* fields omitted */ }
This is supported on crate feature
enable_postgres
only.Postgres Connection Pool Configuration.
property | required | default |
---|---|---|
postgresql.url | false | postgresql://postgres@localhost |
postgresql.host | false | |
postgresql.port | false | |
postgresql.user | false | |
postgresql.password | false | |
postgresql.dbname | false | |
postgresql.options | false | |
postgresql.application_name | false | |
postgresql.connect_timeout | false | 1s |
postgresql.keepalives | false | |
postgresql.keepalives_idle | false | |
postgresql.must_allow_write | false | true |
postgresql.channel_binding | false | |
postgresql.pool.max_size | false | ${pool.max_size:} |
postgresql.pool.min_idle | false | ${pool.min_idle:} |
postgresql.pool.thread_name | false | ${pool.thread_name:} |
postgresql.pool.thread_nums | false | ${pool.thread_nums:} |
postgresql.pool.test_on_check_out | false | ${pool.test_on_check_out:} |
postgresql.pool.max_lifetime | false | ${pool.max_lifetime:} |
postgresql.pool.idle_timeout | false | ${pool.idle_timeout:} |
postgresql.pool.connection_timeout | false | ${pool.connection_timeout:5s} |
postgresql.pool.wait_for_init | false | ${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.
fn prefix() -> &'static str
[src]
fn build_with_key(
self,
_: &impl Environment,
customizer: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]
self,
_: &impl Environment,
customizer: Self::Customizer
) -> Result<Self::Product, PropertyError>
fn build(
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
[src]
namespace: &str,
env: &impl Environment,
customize: Self::Customizer
) -> Result<Self::Product, PropertyError>
fn list_keys(namespace: &str) -> Vec<(String, bool, Option<String>)>
[src]
impl Debug for PostgresConfig
[src]
impl FromEnvironment for PostgresConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnwindSafe for PostgresConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,