MCPcopy Create free account
hub / github.com/CPChain/chain / LDBDatabase

Struct LDBDatabase

database/leveldb.go:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14)
15
16type LDBDatabase struct {
17 fn string // filename for reporting
18 db *leveldb.DB // LevelDB instance
19
20 log *log.Logger // Contextual logger tracking the database path
21}
22
23// NewLDBDatabase returns a LevelDB wrapped object.
24func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected