Struct kvdb::DBTransaction[][src]

pub struct DBTransaction {
    pub ops: Vec<DBOp>,
}

Write transaction. Batches a sequence of put/delete operations for efficiency.

Fields

Database operations.

Methods

impl DBTransaction
[src]

Create new transaction.

Create new transaction with capacity.

Insert a key-value pair in the transaction. Any existing value will be overwritten upon write.

Insert a key-value pair in the transaction. Any existing value will be overwritten upon write.

Delete value by key.

Trait Implementations

impl Default for DBTransaction
[src]

Returns the "default value" for a type. Read more

impl Clone for DBTransaction
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DBTransaction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations