Skip to content

Conversation

@JohannesLichtenberger
Copy link
Member

Implements the delete() method from UpdatableJsonItem interface, enabling JSONiq delete expressions to work with sdb:select-item().

Changes:

  • Add default delete() implementation in JsonDBItem interface
  • Add test testRemoveFromObjectViaSdbSelectItem() to verify functionality

This allows queries like:
delete json sdb:select-item(jn:doc('db','res'), nodeKey)

Requires Brackit feature/sdb-select-item-delete-support branch.

Johannes Lichtenberger added 2 commits January 8, 2026 01:25
Implements the delete() method from UpdatableJsonItem interface,
enabling JSONiq delete expressions to work with sdb:select-item().

Changes:
- Add default delete() implementation in JsonDBItem interface
- Add test testRemoveFromObjectViaSdbSelectItem() to verify functionality

This allows queries like:
  delete json sdb:select-item(jn:doc('db','res'), nodeKey)

Requires Brackit feature/sdb-select-item-delete-support branch.
Implements the delete() method from UpdatableJsonItem interface,
enabling JSONiq delete expressions to work with sdb:select-item().

Changes:
- Add default delete() implementation in JsonDBItem interface
- Add test testRemoveFromObjectViaSdbSelectItem() to verify functionality

This allows queries like:
  delete json sdb:select-item(jn:doc('db','res'), nodeKey)

Requires Brackit feature/sdb-select-item-delete-support branch.
@JohannesLichtenberger JohannesLichtenberger force-pushed the feature/sdb-select-item-delete-support branch from bdad3b0 to bf73b0b Compare January 8, 2026 00:30
Tests that when both replace and delete operations target the same item,
the replace is skipped and only the delete is applied, per XQuery Update
Facility 1.0 section 3.2.1.
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