Lines Matching defs:DB
25 type DB struct { struct
26 Version uint64 // arbitrary user version (0 for new database)
27 Records map[string]Record // in-memory cache, must not be modified directly
29 filename string
30 uncompacted int // number of records in the file
31 pending *bytes.Buffer // pending writes to the file
57 func (db *DB) Save(key string, val []byte, seq uint64) {
69 func (db *DB) Delete(key string) {
78 func (db *DB) Flush() error {
97 func (db *DB) BumpVersion(version uint64) error {
105 func (db *DB) compact() error {
128 func (db *DB) serialize(key string, val []byte, seq uint64) {