Skip to content

Handling cases where the key depends on a multi-value field #307

Answered by ecton
Curstantine asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the delay in getting back to you. Your edit looks like you found the issue -- BonsaiDb 0.4 had a documented limitation around storing Options in Tuples due to how it was being encoded. I had addressed this in the main branch at some point in the past year, but I had been lagging behind on getting a new release put together.

I've released v0.5.0 a few minutes ago which has the new composite key encoding support, but it also has a new derive macro allowing Key to be derived on custom structs and enums.

Replies: 1 comment

Comment options

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