pub struct SQLite { /* private fields */ }
Expand description
Wrapped sqlite instance
It is 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 async fn install_opfs_sahpool(
&self,
cfg: Option<&OpfsSAHPoolCfg>,
) -> Result<OpfsSAHPoolUtil, SQLiteError>
pub async fn install_opfs_sahpool( &self, cfg: Option<&OpfsSAHPoolCfg>, ) -> Result<OpfsSAHPoolUtil, SQLiteError>
install_opfs_sahpool() returns a Promise which resolves, on success, to a utility object
which can be used to perform basic administration of the file pool (colloquially known as PoolUtil
).
§Errors
SQLiteError::Serde
: serialization and deserialization errors
SQLiteError::InstallOpfsSAHPoolVfs
: error in installing opfs sah pool vfs
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