Refactoring of Delta.IDs & horizon functionality with a PrimaryKey type, needed for implementing UUID based primary keys for backends such as the appengine datastore \n Tests: at top level and if available per backend, if not then just visual
This commit is contained in:
parent
26ceed35cc
commit
abda6cbbb0
11 changed files with 135 additions and 44 deletions
|
|
@ -16,6 +16,7 @@ package iterator
|
|||
|
||||
import (
|
||||
"github.com/google/cayley/graph"
|
||||
"github.com/google/cayley/keys"
|
||||
"github.com/google/cayley/quad"
|
||||
)
|
||||
|
||||
|
|
@ -56,7 +57,7 @@ func (qs *store) NameOf(v graph.Value) string {
|
|||
|
||||
func (qs *store) Size() int64 { return 0 }
|
||||
|
||||
func (qs *store) Horizon() int64 { return 0 }
|
||||
func (qs *store) Horizon() graph.PrimaryKey { return keys.NewSequentialKey(0) }
|
||||
|
||||
func (qs *store) DebugPrint() {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue