pub struct StoragePoolSection {
pub max_connections: Option<u32>,
pub acquire_timeout_secs: Option<u64>,
pub statement_cache_capacity: Option<usize>,
}Expand description
[storage.pool] section.
Fields§
§max_connections: Option<u32>Max connections in the pool. Default 8.
acquire_timeout_secs: Option<u64>acquire_timeout for pool checkout (seconds). Default 10.
Raise above 10 if you observe Neon cold-start failures.
statement_cache_capacity: Option<usize>Per-connection prepared-statement cache size. Default 100. Set to 0 for transaction-mode PgBouncer (including the Supabase pooler), which rejects sqlx’s named prepared statements.
Trait Implementations§
Source§impl Clone for StoragePoolSection
impl Clone for StoragePoolSection
Source§fn clone(&self) -> StoragePoolSection
fn clone(&self) -> StoragePoolSection
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 StoragePoolSection
impl Debug for StoragePoolSection
Source§impl Default for StoragePoolSection
impl Default for StoragePoolSection
Source§fn default() -> StoragePoolSection
fn default() -> StoragePoolSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoragePoolSection
impl<'de> Deserialize<'de> for StoragePoolSection
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
impl Eq for StoragePoolSection
Source§impl PartialEq for StoragePoolSection
impl PartialEq for StoragePoolSection
impl StructuralPartialEq for StoragePoolSection
Auto Trait Implementations§
impl Freeze for StoragePoolSection
impl RefUnwindSafe for StoragePoolSection
impl Send for StoragePoolSection
impl Sync for StoragePoolSection
impl Unpin for StoragePoolSection
impl UnsafeUnpin for StoragePoolSection
impl UnwindSafe for StoragePoolSection
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