pub struct Config { /* private fields */ }
Expand description
duckdb configuration Refer to https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp
Implementations
sourceimpl Config
impl Config
sourcepub fn access_mode(self, mode: AccessMode) -> Result<Config>
pub fn access_mode(self, mode: AccessMode) -> Result<Config>
Access mode of the database ([AUTOMATIC], READ_ONLY or READ_WRITE)
sourcepub fn default_order(self, order: DefaultOrder) -> Result<Config>
pub fn default_order(self, order: DefaultOrder) -> Result<Config>
The order type used when none is specified ([ASC] or DESC)
sourcepub fn default_null_order(self, null_order: DefaultNullOrder) -> Result<Config>
pub fn default_null_order(self, null_order: DefaultNullOrder) -> Result<Config>
Null ordering used when none is specified ([NULLS_FIRST] or NULLS_LAST)
sourcepub fn enable_external_access(self, enabled: bool) -> Result<Config>
pub fn enable_external_access(self, enabled: bool) -> Result<Config>
Allow the database to access external state (through e.g. COPY TO/FROM, CSV readers, pandas replacement scans, etc)
sourcepub fn enable_object_cache(self, enabled: bool) -> Result<Config>
pub fn enable_object_cache(self, enabled: bool) -> Result<Config>
Whether or not object cache is used to cache e.g. Parquet metadata
sourcepub fn max_memory(self, memory: &str) -> Result<Config>
pub fn max_memory(self, memory: &str) -> Result<Config>
The maximum memory of the system (e.g. 1GB)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more