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

Add a new md_add_new_row_to_sorted_list function to insert a row into a list column's target table in the correctly sorted position so we do not need to re-sort later. #44

Merged
merged 5 commits into from
Nov 30, 2023

Conversation

jkoritzinsky
Copy link
Collaborator

This functionality will be used in the IMetaDataEmit implementation to ensure that new Param table entries are specified in Sequence order.

This is something that the runtime depends on (and DNMD already validates in the md_apply_delta function), but is not specified in ECMA-335 or in the ECMA-335 Augments doc. As a result, I don't think we need to block developers from using md_add_new_row_to_list with the ParamList column (we also use this function in the apply-delta functionality for this case). Instead, we can rely on users to use the API that provides the guarantees necessary for their use case.

… a list column's target table in the correctly sorted position so we do not need to re-sort later.

This functionality will be used in the IMetaDataEmit implementation to ensure that new Param table entries are specified in Sequence order.

This is something that the runtime depends on (and DNMD already validates in the md_apply_delta function), but is not specified in ECMA-335 or in the ECMA-335 Augments doc. As a result, I don't think we need to block developers from using md_add_new_row_to_list with the ParamList column (we also use this function in the apply-delta functionality for this case). Instead, we can rely on users to use the API that provides the guarantees necessary for their use case.
src/inc/dnmd.h Outdated Show resolved Hide resolved
src/dnmd/write.c Outdated Show resolved Hide resolved
src/dnmd/write.c Outdated Show resolved Hide resolved
src/dnmd/write.c Outdated Show resolved Hide resolved
@jkoritzinsky jkoritzinsky merged commit 6fd8b66 into AaronRobinsonMSFT:master Nov 30, 2023
12 checks passed
@jkoritzinsky jkoritzinsky deleted the insert-in-list branch November 30, 2023 18:24
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.

2 participants