Karma::Wal
Constants
ENTRY_OFFSET_CACHE_FILES = 8
FILE_NAME = "karma.wal"
INDEX_EXTENSION = ".idx"
LSN_FILE_NAME = "karma.wal.lsn"
LSN_MUTEX = Mutex.new
SEGMENT_EXTENSION = ".segment"
SEGMENT_INDEX_HEADER = "KARMA_WAL_INDEX_V1"
Class methods
append(directive : Commands::Directive) : Bool
Sourceenabled?
Sourceentries_after(after_lsn : UInt64, limit : Int32 = 1000, dump_dir = Karma.config.dump_dir) : Array(Entry)
Sourceentries_page_after(after_lsn : UInt64, limit : Int32 = 1000, dump_dir = Karma.config.dump_dir, max_bytes : Int32 | Nil = nil) : EntriesPage
Sourcefsync?
Sourcepersist?(directive : Commands::Directive) : Bool
Sourcereset!
Sourcesegment_first_lsn(file_path : String) : UInt64 | Nil
Sourcesegment_index_path(segment_path : String) : String
Sourcesegment_path(dump_dir : String, first_lsn : UInt64) : String
Sourcetruncate
Source