Trait deno_kv::Database

source ·
pub trait Database {
    // Required methods
    fn snapshot_read<'life0, 'async_trait>(
        &'life0 self,
        requests: Vec<ReadRange>,
        options: SnapshotReadOptions
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ReadRangeOutput>, AnyError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn atomic_write<'life0, 'async_trait>(
        &'life0 self,
        write: AtomicWrite
    ) -> Pin<Box<dyn Future<Output = Result<Option<CommitResult>, AnyError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn snapshot_read<'life0, 'async_trait>( &'life0 self, requests: Vec<ReadRange>, options: SnapshotReadOptions ) -> Pin<Box<dyn Future<Output = Result<Vec<ReadRangeOutput>, AnyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn atomic_write<'life0, 'async_trait>( &'life0 self, write: AtomicWrite ) -> Pin<Box<dyn Future<Output = Result<Option<CommitResult>, AnyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§