Struct rusty_leveldb::WriteBatch [] [src]

pub struct WriteBatch { /* fields omitted */ }

A WriteBatch contains entries to be written to a MemTable (for example) in a compact form.

The storage format is (with the respective length in bytes)

[tag: 1, keylen: ~var, key: keylen, vallen: ~var, val: vallen]

Methods

impl WriteBatch
[src]

[src]

[src]

Initializes a WriteBatch with a serialized WriteBatch.

[src]

Adds an entry to a WriteBatch, to be added to the database.

[src]

Marks an entry to be deleted from the database.

[src]

Clear the contents of a WriteBatch.

[src]

Returns how many operations are in a batch.

[src]

[src]

[src]

[src]

Trait Implementations

Auto Trait Implementations

impl Send for WriteBatch

impl Sync for WriteBatch