Skip to content

How are node and relationship schemas created/updated when exporting to Kuzu #848

Answered by georgeh0
petrarca asked this question in Q&A
Discussion options

You must be logged in to vote

CocoIndex automatically creates tables during "setup", i.e. when you run cocoindex setup or cocoindex update --setup. It will show the tables that it'll create and ask you to confirm, like this:

If you're not using the CLI, the setup() API will do it.

If you see this error, it's probably one of the following reasons:

  1. Between you run cocoindex setup and cocoindex update, you switched the Kuzu database, e.g. you started a new Kuzu container (using the same port) but you didn't keep the underlying db files or it points to a different location.

    If this is the case, you can run cocoindex drop -f main.py to reset your existing states first. After this, cocoindex will know the backend tables …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by petrarca
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants