batch

inline fun LevelDB.batch(sync: Boolean = false, builder: LevelDBBatchBuilder.() -> Unit)

Performs a batch operation on the LevelDB database.

Parameters

sync

Flag indicating whether to perform a synchronous batch operation, that is to wait for all operations to be persisted to disk before returning. Default is false.

builder

A lambda with receiver that constructs a list of batch operations to be performed.