Skip to content

Conversation

Handy-caT
Copy link
Collaborator

No description provided.

if let Some(diff) = difference.get(stringify!(#diff_key)) {
match &diff.old {
#avt_type_ident::#variant_ident(old) => {
if let Some(set) = TableIndex::peek(&self.#index_field_name, old) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why do you expect set here? Set will be returned only for non-unique indexes. Also, this is outdated. In last commit in main I removed TableIndex because for now only indexset supports all functionality that is needed for wt, so you need to merge main and rework this

Choose a reason for hiding this comment

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

You are right, I missed the case of unique indecies because first of all I tried to implement non-unique, thank you

@Handy-caT Handy-caT added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 12, 2025
@Handy-caT Handy-caT added this to the 0.4.1 milestone Feb 12, 2025
@Handy-caT Handy-caT merged commit 836d560 into main Feb 12, 2025
2 of 4 checks passed
@Handy-caT Handy-caT deleted the index-update branch February 12, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants