pub struct Rexie { /* private fields */ }
Expand description
Rexie database (wrapper on top of indexed db)
Implementations§
Source§impl Rexie
impl Rexie
Sourcepub fn builder(name: &str) -> RexieBuilder
pub fn builder(name: &str) -> RexieBuilder
Creates a builder for database with given name
Sourcepub fn store_names(&self) -> Vec<String>
pub fn store_names(&self) -> Vec<String>
Returns names of all stores in the database
Sourcepub fn transaction<T: AsRef<str>>(
&self,
store_names: &[T],
mode: TransactionMode,
) -> Result<Transaction>
pub fn transaction<T: AsRef<str>>( &self, store_names: &[T], mode: TransactionMode, ) -> Result<Transaction>
Creates a new transaction on the database
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rexie
impl !RefUnwindSafe for Rexie
impl !Send for Rexie
impl !Sync for Rexie
impl Unpin for Rexie
impl !UnwindSafe for Rexie
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