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

Fix column indexes. Fixes #4 and partly #16 (create function checks need to be fixed as well) #22

Merged
merged 6 commits into from
Jul 4, 2023
Merged

Conversation

jnssnmrcs
Copy link
Contributor

This creates correct index kv keys depending on the type of index. Currently the create function is failing for non-unique indexes because it currently checks all keys for null versionstamps, which should not be done for non-unique index keys. This change also requires exactly 1 or 0 index types per column, since it does not make sense to have more than one of the currently supported index types on a single property.

@jnssnmrcs jnssnmrcs changed the title Fix column indexes Fix column indexes. Fixes #4 and partly #16 (create function checks need to be fixed as well) Jul 1, 2023
@jnssnmrcs
Copy link
Contributor Author

Maybe a separate issue should be created for updating the create-function to not check null versionstamps for non-unique keys

test/find_many_test.ts Outdated Show resolved Hide resolved
@jnssnmrcs
Copy link
Contributor Author

I'm fixing the create function in a separate branch at the moment but waiting for this to get merged before I put up a PR for it

@jnssnmrcs
Copy link
Contributor Author

I realized it was something else that made the tests fail, it's fixed now and they pass.

@skoshx
Copy link
Owner

skoshx commented Jul 4, 2023

Thank you for making the changes! And apologies for taking so long with merging, have been incredibly busy!

@skoshx skoshx merged commit b5f59e1 into skoshx:main Jul 4, 2023
1 of 2 checks passed
@jnssnmrcs jnssnmrcs deleted the fix-column-indexes branch July 10, 2023 07:12
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

Successfully merging this pull request may close these issues.

None yet

2 participants