-
Notifications
You must be signed in to change notification settings - Fork 177
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
Add lib::db::{column_ordering, raw_def::v9} #1542
Conversation
e34c871
to
3e6a171
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Just one small nit.
55cc541
to
63580e4
Compare
crates/lib/src/db/raw_def/v9.rs
Outdated
let column = column.as_ref(); | ||
self.columns()? | ||
.iter() | ||
.position(|x| x.name.as_ref().map(|s| &s[..]) == Some(column)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.position(|x| x.name.as_ref().map(|s| &s[..]) == Some(column)) | |
.position(|x| x.name.as_ref().is_some_and(|s| s == column)) |
(might need some tweaking to get the types right...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out I should have been using .name()
anyway :)
More comments One more comment Update crates/lib/src/db/column_ordering.rs Co-authored-by: Phoebe Goldman <[email protected]> Signed-off-by: james gilles <[email protected]> Update crates/lib/src/db/raw_def/v9.rs Co-authored-by: Tyler Cloutier <[email protected]> Signed-off-by: james gilles <[email protected]> Cargo fmt Reword things
Co-authored-by: Mazdak Farrokhzad <[email protected]> Signed-off-by: james gilles <[email protected]>
1222c83
to
93d1f1e
Compare
Description of Changes
This is NOT an ABI or API break because we have enums now!!
I decided to split these out from the validation & migration code PR to make it easier to review.
I haven't added any code to work with these, just the definitions.
The new "test" features are going to be exercised in my next PR.
Expected complexity level and risk
a mild 1/5: this adds some new types that aren't used anywhere, which is perhaps slightly confusing.
Testing
CI should suffice.