class

StarDB::Database

Inherits Reference < Object

Main database interface

Constants

MEMTABLE_FLUSH_SIZE = (64 * 1024) * 1024

Constructors

new(path : String, sync_on_write : Bool = false)
Source

Instance methods

batch_put(entries : Hash(String, Bool))
Source
batch_put(entries : Hash(String, Int32))
Source
batch_put(entries : Hash(String, Int64))
Source
batch_put(entries : Hash(String, Float64))
Source
batch_put(entries : Hash(String, String))
Source
batch_put(entries : Array(Tuple(String, Value)))
Source
close
Source
compact
Source
delete(key : String)
Source
get(key : String) : Value | Nil
Source
put(key : String, value : Bool)
Source
put(key : String, value : Int8)
Source
put(key : String, value : Int16)
Source
put(key : String, value : Int32)
Source
put(key : String, value : Int64)
Source
put(key : String, value : UInt8)
Source
put(key : String, value : UInt16)
Source
put(key : String, value : UInt32)
Source
put(key : String, value : UInt64)
Source
put(key : String, value : Float32)
Source
put(key : String, value : Float64)
Source
put(key : String, value : String)
Source
put(key : String, value : Bytes)
Source
scan(start_key : String | Nil = nil, end_key : String | Nil = nil, &block : String, Value -> )
Source