Merge pull request #125 from barakmich/gremlin_underscore
Import underscore for Gremlin
This commit is contained in:
commit
d3d55e320d
2 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ func runIteratorToArrayNoTags(it graph.Iterator, ses *Session, limit int) []stri
|
||||||
func runIteratorWithCallback(it graph.Iterator, ses *Session, callback otto.Value, this otto.FunctionCall, limit int) {
|
func runIteratorWithCallback(it graph.Iterator, ses *Session, callback otto.Value, this otto.FunctionCall, limit int) {
|
||||||
count := 0
|
count := 0
|
||||||
it, _ = it.Optimize()
|
it, _ = it.Optimize()
|
||||||
|
glog.V(2).Infoln(it.DebugString(0))
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ses.kill:
|
case <-ses.kill:
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/robertkrimen/otto"
|
"github.com/robertkrimen/otto"
|
||||||
|
_ "github.com/robertkrimen/otto/underscore"
|
||||||
|
|
||||||
"github.com/google/cayley/graph"
|
"github.com/google/cayley/graph"
|
||||||
"github.com/google/cayley/query"
|
"github.com/google/cayley/query"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue