I am trying to use the example code hello-schema and getting compilation error
Steps to reproduce the issue:
With Go Version: go1.19.3, cayley version 0.7.7, build the code hello-schema and getting compilation error
The error is
# github.com/cayleygraph/cayley/graph/kv
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/indexing.go:1185:24: not enough arguments in call to kv.View
have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/indexing.go:1187:17: cannot use logIndex (variable of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hidalgo/kv".IteratorOption in argument to tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/iterators.go:25:24: not enough arguments in call to kv.View have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/metrics.go:112:9: cannot use &mTx{…} (value of type *mTx) as type "github.com/hidal-go/hidalgo/kv".Tx in return statement:
*mTx does not implement "github.com/hidal-go/hidalgo/kv".Tx (wrong type for Scan method)
have Scan(pref "github.com/hidal-go/hidalgo/kv".Key) "github.com/hidal-go/hidalgo/kv".Iterator
want Scan(opts ..."github.com/hidal-go/hidalgo/kv".IteratorOption) "github.com/hidal-go/hidalgo/kv".Iterator
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/metrics.go:174:20: cannot use pref (variable of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hidalgo/kv".Iterator
Option in argument to tx.tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quad_iterator.go:195:22: cannot use it.ind.Key(it.vals) (value of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hi
dalgo/kv".IteratorOption in argument to it.tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quadstore.go:201:24: not enough arguments in call to kv.View
have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quadstore.go:267:24: not enough arguments in call to kv.View
Reproducing this error is very straight forward with the given info above.
Expected results:
Need working example that works
# github.com/cayleygraph/cayley/graph/kv
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/indexing.go:1185:24: not enough arguments in call to kv.View
have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/indexing.go:1187:17: cannot use logIndex (variable of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hidalgo/kv".IteratorOption in argument to tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/iterators.go:25:24: not enough arguments in call to kv.View have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/metrics.go:112:9: cannot use &mTx{…} (value of type *mTx) as type "github.com/hidal-go/hidalgo/kv".Tx in return statement:
*mTx does not implement "github.com/hidal-go/hidalgo/kv".Tx (wrong type for Scan method)
have Scan(pref "github.com/hidal-go/hidalgo/kv".Key) "github.com/hidal-go/hidalgo/kv".Iterator
want Scan(opts ..."github.com/hidal-go/hidalgo/kv".IteratorOption) "github.com/hidal-go/hidalgo/kv".Iterator
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/metrics.go:174:20: cannot use pref (variable of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hidalgo/kv".Iterator
Option in argument to tx.tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quad_iterator.go:195:22: cannot use it.ind.Key(it.vals) (value of type "github.com/hidal-go/hidalgo/kv".Key) as type "github.com/hidal-go/hi
dalgo/kv".IteratorOption in argument to it.tx.Scan:
"github.com/hidal-go/hidalgo/kv".Key does not implement "github.com/hidal-go/hidalgo/kv".IteratorOption (missing ApplyKV method)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quadstore.go:201:24: not enough arguments in call to kv.View
have ("github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
want (context.Context, "github.com/hidal-go/hidalgo/kv".KV, func(tx "github.com/hidal-go/hidalgo/kv".Tx) error)
../../go/pkg/mod/github.com/cayleygraph/cayley@v0.7.7/graph/kv/quadstore.go:267:24: not enough arguments in call to kv.View
Environment details:
Backend database: Did not use any database and the code is used as-is
I am trying to use the example code hello-schema and getting compilation error
Steps to reproduce the issue:
Expected results:
Need working example that works
Environment details:
Backend database:
Did not use any database and the code is used as-is