~emersion/drmdb

ref: f5007b791002d8c1bf56535c2825c824fbe6aa9d drmdb/database/db.go -rw-r--r-- 422 bytes
f5007b79Simon Ser Print some stats on the index page a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package database

import (
	"git.sr.ht/~emersion/drmdb/drmtree"
)

type DB struct {
}

func Open() (*DB, error) {
	return &DB{}, initDB()
}

func (db *DB) Store(n *drmtree.Node) (string, error) {
	return store(n)
}

func (db *DB) Load(k string) (*drmtree.Node, error) {
	return load(k)
}

func (db *DB) Walk(fn func(k string, n *drmtree.Node) error) error {
	return walk(fn)
}

func (db *DB) Close() error {
	return nil
}