Struct gluesql_memory_storage::MemoryStorage
source · [−]Fields
id_counter: u64
items: HashMap<String, Item>
Trait Implementations
sourceimpl AlterTable for MemoryStorage
impl AlterTable for MemoryStorage
fn rename_schema<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
new_table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn rename_column<'life0, 'life1, 'life2, 'async_trait>(
self,
table_name: &'life0 str,
old_column_name: &'life1 str,
new_column_name: &'life2 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn add_column<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
column_def: &'life1 ColumnDef
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn drop_column<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
column_name: &'life1 str,
if_exists: bool
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl Clone for MemoryStorage
impl Clone for MemoryStorage
sourcefn clone(&self) -> MemoryStorage
fn clone(&self) -> MemoryStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryStorage
impl Debug for MemoryStorage
sourceimpl Default for MemoryStorage
impl Default for MemoryStorage
sourcefn default() -> MemoryStorage
fn default() -> MemoryStorage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MemoryStorage
impl<'de> Deserialize<'de> for MemoryStorage
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Index<Key> for MemoryStorage
impl Index<Key> for MemoryStorage
fn scan_indexed_data<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_table_name: &'life1 str,
_index_name: &'life2 str,
_asc: Option<bool>,
_cmp_value: Option<(&'life3 IndexOperator, Value)>
) -> Pin<Box<dyn Future<Output = Result<RowIter<Key>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
sourceimpl IndexMut for MemoryStorage
impl IndexMut for MemoryStorage
fn create_index<'life0, 'life1, 'life2, 'async_trait>(
self,
_table_name: &'life0 str,
_index_name: &'life1 str,
_column: &'life2 OrderByExpr
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn drop_index<'life0, 'life1, 'async_trait>(
self,
_table_name: &'life0 str,
_index_name: &'life1 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl Metadata for MemoryStorage
impl Metadata for MemoryStorage
sourceimpl Serialize for MemoryStorage
impl Serialize for MemoryStorage
sourceimpl Store<Key> for MemoryStorage
impl Store<Key> for MemoryStorage
fn fetch_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Schema>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn scan_data<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<RowIter<Key>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl StoreMut<Key> for MemoryStorage
impl StoreMut<Key> for MemoryStorage
fn insert_schema<'life0, 'async_trait>(
self,
schema: &'life0 Schema
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_schema<'life0, 'async_trait>(
self,
table_name: &'life0 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn insert_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
rows: Vec<Row>
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
rows: Vec<(Key, Row)>
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
keys: Vec<Key>
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl Transaction for MemoryStorage
impl Transaction for MemoryStorage
fn begin<'async_trait>(
self,
autocommit: bool
) -> Pin<Box<dyn Future<Output = MutResult<Self, bool>> + 'async_trait>> where
Self: 'async_trait,
fn rollback<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
Self: 'async_trait,
fn commit<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>> where
Self: 'async_trait,
impl GStore<Key> for MemoryStorage
impl GStoreMut<Key> for MemoryStorage
Auto Trait Implementations
impl RefUnwindSafe for MemoryStorage
impl Send for MemoryStorage
impl Sync for MemoryStorage
impl Unpin for MemoryStorage
impl UnwindSafe for MemoryStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more