Added functionality so quadstore is generated per request (if needed) for the new appengine backend \n CR : nobody \n Tests run: unit tests
This commit is contained in:
parent
2c74cb1657
commit
35ccfe7677
8 changed files with 130 additions and 51 deletions
|
|
@ -35,12 +35,13 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
graph.RegisterQuadStore("leveldb", true, newQuadStore, createNewLevelDB)
|
||||
graph.RegisterQuadStore(QuadStoreType, true, newQuadStore, createNewLevelDB, nil)
|
||||
}
|
||||
|
||||
const (
|
||||
DefaultCacheSize = 2
|
||||
DefaultWriteBufferSize = 20
|
||||
QuadStoreType = "leveldb"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -495,3 +496,7 @@ func compareBytes(a, b graph.Value) bool {
|
|||
func (qs *QuadStore) FixedIterator() graph.FixedIterator {
|
||||
return iterator.NewFixed(compareBytes)
|
||||
}
|
||||
|
||||
func (qs *QuadStore) GetType() string {
|
||||
return QuadStoreType
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue