Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk kv backend registration fails #937

Closed
ermik opened this issue Jun 6, 2020 · 1 comment
Closed

Bulk kv backend registration fails #937

ermik opened this issue Jun 6, 2020 · 1 comment

Comments

@ermik
Copy link

ermik commented Jun 6, 2020

kv.List() called here:

for _, r := range kv.List() {

returns an empty array.

The list of imports (modules are "GOFLAGS": "-mod=vendor") declared in client package used for testing:

import (
	"github.com/cayleygraph/cayley"
	"github.com/cayleygraph/cayley/graph"
	"github.com/cayleygraph/cayley/graph/path"
	"github.com/cayleygraph/cayley/schema"
	"github.com/cayleygraph/quad"
	"github.com/cayleygraph/quad/voc"

	// The drivers for cayley
	_ "github.com/cayleygraph/cayley/graph/kv" // "all"
	bg "github.com/cayleygraph/cayley/graph/kv/bolt"
	lg "github.com/cayleygraph/cayley/graph/kv/leveldb"

	// Init "single" writer; unnecessary when using cayley.Handle, here for verbosity.
	_ "github.com/cayleygraph/cayley/writer"

	// Import RDF vocabulary definitions to be able to expand IRIs like rdf:label.
	_ "github.com/cayleygraph/quad/voc/core"
)
@dennwc
Copy link
Member

dennwc commented Apr 7, 2021

The order of those imports is important. I think you should import kv/bolt before kv.

@dennwc dennwc closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants