MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / OpenStore

Function OpenStore

internal/utils/kvstore/store.go:81–92  ·  view source on GitHub ↗
(storeName string)

Source from the content-addressed store, hash-verified

79}
80
81func OpenStore(storeName string) (*Store, error) {
82 store, err := NewStore(storeName)
83 if err != nil {
84 return nil, err
85 }
86 err = store.Open()
87 if err != nil {
88 return nil, err
89 }
90
91 return store, nil
92}
93
94func OpenStoreDir(dir string, storeName string) (*Store, error) {
95 if !IsValidName(storeName) {

Callers 15

TestTable_SetFunction · 0.92
TestTable_GetFunction · 0.92
TestTable_ExistFunction · 0.92
TestTable_DeleteFunction · 0.92
TestTable_Delete_EmptyFunction · 0.92
BenchmarkTable_SetFunction · 0.92
BenchmarkTable_GetFunction · 0.92
TestStore_OpenFunction · 0.92
TestStore_TwiceFunction · 0.92
TestStore_RawDBFunction · 0.92

Calls 2

OpenMethod · 0.95
NewStoreFunction · 0.85

Tested by 15

TestTable_SetFunction · 0.74
TestTable_GetFunction · 0.74
TestTable_ExistFunction · 0.74
TestTable_DeleteFunction · 0.74
TestTable_Delete_EmptyFunction · 0.74
BenchmarkTable_SetFunction · 0.74
BenchmarkTable_GetFunction · 0.74
TestStore_OpenFunction · 0.74
TestStore_TwiceFunction · 0.74
TestStore_RawDBFunction · 0.74