pub struct TimescaleDbConfig {
pub host: String,
pub port: u16,
pub database: String,
pub username: String,
pub password: String,
pub pool_size: u32,
pub ssl: bool,
}Expand description
TimescaleDB connection configuration.
TimescaleDB provides PostgreSQL-based time-series capabilities with ACID guarantees, suitable for production trading systems.
Fields§
§host: StringPostgreSQL host Env: VELORA_DATABASE_TIMESCALEDB_HOST
port: u16PostgreSQL port (default: 5432) Env: VELORA_DATABASE_TIMESCALEDB_PORT
database: StringDatabase name Env: VELORA_DATABASE_TIMESCALEDB_DATABASE
username: StringUsername Env: VELORA_DATABASE_TIMESCALEDB_USERNAME
password: StringPassword Env: VELORA_DATABASE_TIMESCALEDB_PASSWORD
pool_size: u32Connection pool size Env: VELORA_DATABASE_TIMESCALEDB_POOL_SIZE
ssl: boolEnable SSL/TLS Env: VELORA_DATABASE_TIMESCALEDB_SSL
Trait Implementations§
Source§impl Clone for TimescaleDbConfig
impl Clone for TimescaleDbConfig
Source§impl Debug for TimescaleDbConfig
impl Debug for TimescaleDbConfig
Source§impl Default for TimescaleDbConfig
impl Default for TimescaleDbConfig
Source§impl<'de> Deserialize<'de> for TimescaleDbConfig
impl<'de> Deserialize<'de> for TimescaleDbConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimescaleDbConfig
impl RefUnwindSafe for TimescaleDbConfig
impl Send for TimescaleDbConfig
impl Sync for TimescaleDbConfig
impl Unpin for TimescaleDbConfig
impl UnsafeUnpin for TimescaleDbConfig
impl UnwindSafe for TimescaleDbConfig
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