pub struct SQLite { /* private fields */ }
Expand description
Wrapped sqlite instance
Itis not sure about the multi-thread support of sqlite-wasm,
so use Fragile
to limit it to one thread.
Implementations§
Source§impl SQLite
impl SQLite
Sourcepub const DEFAULT_OPTIONS: SQLiteOpts
pub const DEFAULT_OPTIONS: SQLiteOpts
The default configuration, passed in when sqlite::default()
Sourcepub async fn default() -> Result<Self, SQLiteError>
pub async fn default() -> Result<Self, SQLiteError>
§Errors
same as SQLite::new()
Sourcepub async fn new(opts: SQLiteOpts) -> Result<Self, SQLiteError>
pub async fn new(opts: SQLiteOpts) -> Result<Self, SQLiteError>
§Errors
SQLiteError::Memory
: the wrong range is configured
SQLiteError::Module
: error in initializing module
SQLiteError::Serde
: serialization and deserialization errors
Auto Trait Implementations§
impl Freeze for SQLite
impl RefUnwindSafe for SQLite
impl Send for SQLite
impl Sync 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