pub struct SqlStorage { /* private fields */ }
Expand description
Wrapper around the Workers SqlStorage
interface exposed at ctx.storage.sql
.
The API is intentionally minimal for now – additional helper utilities can be built on top as needed.
Implementations§
Source§impl SqlStorage
impl SqlStorage
Sourcepub fn database_size(&self) -> usize
pub fn database_size(&self) -> usize
Size of the underlying SQLite database in bytes.
Trait Implementations§
Source§impl AsRef<JsValue> for SqlStorage
impl AsRef<JsValue> for SqlStorage
Source§impl Clone for SqlStorage
impl Clone for SqlStorage
Source§fn clone(&self) -> SqlStorage
fn clone(&self) -> SqlStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlStorage
impl Debug for SqlStorage
impl Send for SqlStorage
impl Sync for SqlStorage
Auto Trait Implementations§
impl Freeze for SqlStorage
impl RefUnwindSafe for SqlStorage
impl Unpin for SqlStorage
impl UnwindSafe for SqlStorage
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