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

WASM ABI: insert -> datastore_insert_bsatn & impl new semantics #1639

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Aug 27, 2024

Description of Changes

Rename insert to datastore_insert_bsatn and impl the new semantics wrt. auto-inc columns.
Also, fix the semantics when multiple sequences exist on a table.

cc #1460

Fixes #1640

@Centril Centril added abi-break A PR that makes an ABI breaking change release-0.12 labels Aug 27, 2024
@Centril Centril requested a review from cloutiertyler as a code owner August 27, 2024 13:58
/// - `BSATN_DECODE_ERROR`, when `row` cannot be decoded to a `ProductValue`.
/// typed at the `ProductType` the table's schema specifies.
/// - `UNIQUE_ALREADY_EXISTS`, when inserting `row` would violate a unique constraint.
/// - `SCHEDULE_AT_DELAY_TOO_LONG`, when the delay specified in the row was too long.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE TO SELF: This is different from the proposal, but also necessary. Add to proposal once impl work is done.

/// # Traps
///
/// Traps if:
/// - `row_len_ptr` is NULL or `row_len` is not in bounds of WASM memory.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE TO SELF: row_len_ptr is different from the proposal, but also necessary. Add to proposal once impl work is done.

@RReverser
Copy link
Contributor

Reviewed both Rust and C# on this one; aside from one minor issue above, the rest looks good.

@Centril Centril force-pushed the centril/datastore_delete_all_by_eq_bsatn branch from e1269ee to 11da884 Compare September 2, 2024 17:28
Base automatically changed from centril/datastore_delete_all_by_eq_bsatn to master September 3, 2024 12:42
@Centril Centril force-pushed the centril/datastore_insert_bsatn branch 3 times, most recently from 556db01 to dc305c2 Compare September 4, 2024 14:05
@Centril Centril enabled auto-merge September 4, 2024 14:18
@Centril Centril force-pushed the centril/datastore_insert_bsatn branch from 6805083 to 4a07054 Compare September 5, 2024 19:05
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve the changes to the trait.rs file.

@Centril Centril added this pull request to the merge queue Sep 5, 2024
Merged via the queue into master with commit da71d0f Sep 5, 2024
8 checks passed
@Centril Centril deleted the centril/datastore_insert_bsatn branch September 5, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break A PR that makes an ABI breaking change release-0.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants