Struct async_duckdb::PoolBuilder
source · pub struct PoolBuilder { /* private fields */ }
Expand description
Implementations§
source§impl PoolBuilder
impl PoolBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new PoolBuilder
with the default settings.
sourcepub fn path<P: AsRef<Path>>(self, path: P) -> Self
pub fn path<P: AsRef<Path>>(self, path: P) -> Self
Specify the path of the sqlite3 database to open.
By default, an in-memory database is used.
sourcepub fn flagsfn(self, flags: fn() -> Result<Config>) -> Self
pub fn flagsfn(self, flags: fn() -> Result<Config>) -> Self
Specify the [OpenFlags
] to use when opening a new connection.
By default, [OpenFlags::default()
] is used.
sourcepub fn num_conns(self, num_conns: usize) -> Self
pub fn num_conns(self, num_conns: usize) -> Self
Specify the number of sqlite connections to open as part of the pool.
Defaults to the number of logical CPUs of the current system.
Trait Implementations§
source§impl Clone for PoolBuilder
impl Clone for PoolBuilder
source§fn clone(&self) -> PoolBuilder
fn clone(&self) -> PoolBuilder
Returns a copy of the value. Read more
1.0.0 · 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 PoolBuilder
impl Debug for PoolBuilder
Auto Trait Implementations§
impl Freeze for PoolBuilder
impl RefUnwindSafe for PoolBuilder
impl Send for PoolBuilder
impl Sync for PoolBuilder
impl Unpin for PoolBuilder
impl UnwindSafe for PoolBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)