pub struct PostgresConfig {
pub database_url: Option<String>,
pub max_connections: u32,
pub min_connections: u32,
pub connect_timeout_secs: u64,
pub timescaledb: TimescaleConfig,
}Expand description
Connection pool and TimescaleDB knobs for the production Postgres
StorageBackend.
database_url is None by default so YAML configs without an
explicit URL fall back to the AAASM_DATABASE_URL env var (wired
in the env-override Subtask, AAASM-1735). Pool sizing defaults
match the spec’s reference values.
Fields§
§database_url: Option<String>PostgreSQL connection URL. Falls back to AAASM_DATABASE_URL
(env-override layer); leaving both unset is a startup error
when storage.backend = Postgres.
max_connections: u32Maximum sqlx connection-pool size. Default: 20.
min_connections: u32Minimum sqlx connection-pool size kept warm. Default: 2.
connect_timeout_secs: u64Connection-establishment timeout in seconds. Default: 10.
timescaledb: TimescaleConfigTimescaleDB-specific knobs.
Trait Implementations§
Source§impl Clone for PostgresConfig
impl Clone for PostgresConfig
Source§fn clone(&self) -> PostgresConfig
fn clone(&self) -> PostgresConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresConfig
impl Debug for PostgresConfig
Source§impl Default for PostgresConfig
impl Default for PostgresConfig
impl Eq for PostgresConfig
Source§impl PartialEq for PostgresConfig
impl PartialEq for PostgresConfig
Source§fn eq(&self, other: &PostgresConfig) -> bool
fn eq(&self, other: &PostgresConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PostgresConfig
Auto Trait Implementations§
impl Freeze for PostgresConfig
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnsafeUnpin for PostgresConfig
impl UnwindSafe for PostgresConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.