Open
Description
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:
- There's no public implementation of the MultiDBHandler interface in the sql package
- No guidance in the documentation about how to implement or use it
- The example code doesn't mention this requirement at all
What you expected to happen
- The example code in the documentation should work as-is with the current version
- If MultiDBHandler is required, the documentation should:
- Explain this requirement
- Provide a basic implementation example or point to one
- Explain when and why it's needed
How to reproduce it (as minimally and precisely as possible)
- Create a new Go project
- Copy the example code from the documentation
- Run the code:
Environment
shell
go1.23.6 darwin/arm64
immudb v1.9.5