LevelDBSnapshot

Represents a snapshot of the LevelDB database at a specific point in time. A snapshot provides a consistent view of the database, unaffected by subsequent changes.

Inheritors

JvmLevelDBSnapshot
NativeLevelDBSnapshot

Properties

Link copied to clipboard
abstract val createdAt: Instant

Functions

Link copied to clipboard
abstract fun get(key: String, verifyChecksums: Boolean = false, fillCache: Boolean = true): String?

Retrieves the value associated with a given key in the LevelDB database.

Link copied to clipboard
abstract fun scan(from: String? = null, verifyChecksums: Boolean = false, fillCache: Boolean = true): CloseableSequence<LevelDBReader.LazyEntry>

Creates an Iterable to traverse all key-value pairs in the LevelDB database. The sequence will start from the specified key, or from the first key if no key is specified. LevelDB sorts keys in lexicographic order.