Type Alias async_skipdb::comparable::SmolComparableDb

source ·
pub type SmolComparableDb<K, V> = ComparableDb<K, V, SmolSpawner>;
Available on crate feature smol only.
Expand description

Database for smol runtime.

Aliased Type§

struct SmolComparableDb<K, V> { /* private fields */ }

Implementations

source§

impl<K, V, S> ComparableDb<K, V, S>
where K: CheapClone + Ord, S: AsyncSpawner,

source

pub async fn write(&self) -> WriteTransaction<K, V, S>

Create a write transaction.

source§

impl<K, V, S> ComparableDb<K, V, S>
where K: CheapClone + Ord + Send + 'static, V: Send + 'static, S: AsyncSpawner,

source

pub fn compact(&self)

Compact the database.

source§

impl<K, V, S: AsyncSpawner> ComparableDb<K, V, S>

source

pub async fn new() -> Self

Creates a new ComparableDb.

source§

impl<K, V, S: AsyncSpawner> ComparableDb<K, V, S>

source

pub async fn version(&self) -> u64

Returns the current read version of the database.

source

pub async fn read( &self ) -> ReadTransaction<K, V, ComparableDb<K, V, S>, BTreeCm<K>, S>

Create a read transaction.

Trait Implementations

source§

impl<K, V, S: AsyncSpawner> Clone for ComparableDb<K, V, S>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more