You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MultiDBHandler should not be required for running the embedded sql engine, unless you are using operations that require explicit support for multiple database operations.
Can you also report exactly the query/operation that is causing the error to be triggered?
First, I apologize if I misunderstood the MultiDBHandler concept. I was following the official documentation example step by step, and let me detail the issues I encountered:
When I first ran the example code from the documentation directly, I encountered the first error: illegal state: multi-indexing must be enabled
By examining the methods in store.ImmuStore, I found the solution - enabling multi-indexing when creating the store: st, err := store.Open("data", store.DefaultOptions().WithMultiIndexing(true))
After resolving the first error, I encountered the second one: illegal state: unspecified multidbHanlder
While I found the WithMultiDBHandler interface in the SQL configuration, I couldn't find any public implementation of this interface to use.
This error occurred when executing the CREATE DATABASE db1 statement.
If possible, it would be helpful to add this information to the documentation to help other new users get started with immudb more smoothly. Thank you again for your help!
What happened
The embedded SQL example in the official documentation (https://docs.immudb.io/1.9.5/embedded/embeddingSQL.html) is outdated and doesn't work with immudb v1.9.5. When trying to run the example, I encountered two errors:
illegal state: multi-indexing must be enabled
illegal state: unspecified multidbHanlder
After fixing the first error by enabling multi-indexing:
store.Open("data", store.DefaultOptions().WithMultiIndexing(true))
I found that the SQL engine requires a MultiDBHandler implementation, but:
What you expected to happen
How to reproduce it (as minimally and precisely as possible)
Environment
shell
go1.23.6 darwin/arm64
immudb v1.9.5
The text was updated successfully, but these errors were encountered: