Client interface to the key-value record store.

Constructor

new (config:DatabaseConfig, store:PageStore)

Parameters:

config

Database configuration.

store

PageStore instance that contains the actual pages.

Methods

count ():Int

Returns the number of keys in the database.

cursor ():Cursor

Returns a cursor for more reading records in an advanced manner.

get (key:Bytes):Option<Bytes>

Returns the associated value to the given key.