Merge pull request #277 from barakmich/upgrade_db
Add migration tool and use protos in Bolt store
This commit is contained in:
commit
0c5f1bc364
13 changed files with 1228 additions and 73 deletions
|
|
@ -30,9 +30,15 @@ import (
|
|||
const QuadStoreType = "memstore"
|
||||
|
||||
func init() {
|
||||
graph.RegisterQuadStore(QuadStoreType, false, func(string, graph.Options) (graph.QuadStore, error) {
|
||||
return newQuadStore(), nil
|
||||
}, nil, nil)
|
||||
graph.RegisterQuadStore(QuadStoreType, graph.QuadStoreRegistration{
|
||||
NewFunc: func(string, graph.Options) (graph.QuadStore, error) {
|
||||
return newQuadStore(), nil
|
||||
},
|
||||
NewForRequestFunc: nil,
|
||||
UpgradeFunc: nil,
|
||||
InitFunc: nil,
|
||||
IsPersistent: false,
|
||||
})
|
||||
}
|
||||
|
||||
func cmp(a, b int64) int {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue