Make db name-literal agnostic
Move the persistence characteristic of the store into the graph registry and provide an API hook to get that information. Add error return for init on a non-persistent store. Updates #35.
This commit is contained in:
parent
7cd740aa7b
commit
2d4c07b56d
7 changed files with 36 additions and 21 deletions
|
|
@ -30,7 +30,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
graph.RegisterTripleStore("mongo", newTripleStore, createNewMongoGraph)
|
||||
graph.RegisterTripleStore("mongo", true, newTripleStore, createNewMongoGraph)
|
||||
}
|
||||
|
||||
// Guarantee we satisfy graph.Bulkloader.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue