Struct gluesql_sled_storage::SledStorage [−][src]
Fields
tree: Db
state: State
tx_timeout: Option<u128>
transaction timeout in milliseconds
Implementations
pub async fn check_and_retry<Fut>(
self,
tx_result: StdResult<TxPayload, TransactionError<Error>>,
retry_func: impl FnOnce(SledStorage) -> Fut
) -> MutResult<SledStorage, ()> where
Fut: Future<Output = MutResult<SledStorage, ()>>,
Trait Implementations
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 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<IVec>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
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 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,
Auto Trait Implementations
impl !RefUnwindSafe for SledStorage
impl Send for SledStorage
impl Sync for SledStorage
impl Unpin for SledStorage
impl !UnwindSafe for SledStorage
Blanket Implementations
Mutably borrows from an owned value. Read more