MCPcopy Index your code
hub / github.com/nutsdb/nutsdb / Open

Function Open

db.go:201–207  ·  view source on GitHub ↗

Open returns a newly initialized DB object with Option.

(opt Options, opts ...Option)

Source from the content-addressed store, hash-verified

199
200// Open returns a newly initialized DB object with Option.
201func Open(opt Options, opts ...Option) (*DB, error) {
202 op := &opt
203 for _, do := range opts {
204 do(op)
205 }
206 return open(*op)
207}
208
209// Update executes a function within a managed read/write transaction.
210func (db *DB) Update(fn func(tx *Tx) error) error {

Callers 15

initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92

Calls 1

openFunction · 0.85

Tested by 15

setupIteratorBenchmarkFunction · 0.68
TestWithNodeNumFunction · 0.68
TestWithMaxBatchCountFunction · 0.68
TestWithMaxBatchSizeFunction · 0.68
TestWithRWModeFunction · 0.68
TestWithSyncEnableFunction · 0.68
TestWithMaxFdNumsInCacheFunction · 0.68