pub struct Sqlite { /* private fields */ }
Expand description
An SQLite database handle
Implementations§
Source§impl Sqlite
impl Sqlite
Sourcepub fn new(path: &str) -> Result<Self, Error>
pub fn new(path: &str) -> Result<Self, Error>
Opens or creates an SQLite 3 database for reading and writing
Sourcepub fn uri(uri: &str) -> Result<Self, Error>
pub fn uri(uri: &str) -> Result<Self, Error>
Opens an SQLite database from an URL (see https://www.sqlite.org/uri.html)
Sourcepub fn raw(location: &str, flags: c_int) -> Result<Self, Error>
pub fn raw(location: &str, flags: c_int) -> Result<Self, Error>
Opens an SQLite database at the given location with the given flags
§Important
To ensure the safety guarantees of the Rust API are not violated, we always add SQLITE_OPEN_FULLMUTEX
to the
provided flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sqlite
impl RefUnwindSafe for Sqlite
impl Unpin for Sqlite
impl UnwindSafe for Sqlite
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