Struct libsql_sys::connection::Connection
source · pub struct Connection<W> { /* private fields */ }
Implementations§
source§impl<W: Wal> Connection<W>
impl<W: Wal> Connection<W>
sourcepub fn open<T>(
path: impl AsRef<Path>,
flags: OpenFlags,
wal_manager: T,
auto_checkpoint: u32,
encryption_config: Option<EncryptionConfig>,
) -> Result<Self, Error>where
T: WalManager<Wal = W>,
pub fn open<T>(
path: impl AsRef<Path>,
flags: OpenFlags,
wal_manager: T,
auto_checkpoint: u32,
encryption_config: Option<EncryptionConfig>,
) -> Result<Self, Error>where
T: WalManager<Wal = W>,
Opens a database with the regular wal methods in the directory pointed to by path
pub fn db_change_counter(&self) -> Result<u32, c_int>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Connection<W>
impl<W> RefUnwindSafe for Connection<W>where
W: RefUnwindSafe,
impl<W> !Send for Connection<W>
impl<W> !Sync for Connection<W>
impl<W> Unpin for Connection<W>where
W: Unpin,
impl<W> UnwindSafe for Connection<W>where
W: UnwindSafe,
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