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

json_patch() function implementation #821

Merged
merged 14 commits into from
Jan 29, 2025

Conversation

ihorandrianov
Copy link
Contributor

@ihorandrianov ihorandrianov commented Jan 29, 2025

First review #820
The function follows RFC 7386 JSON Merge Patch semantics:

  • If the patch is null, the target is replaced with null
  • If the patch contains a scalar value, the target is replaced with that value
  • If both target and patch are objects, the patch is recursively applied
  • null values in the patch result in property removal from the target

@penberg penberg merged commit 06edf33 into tursodatabase:main Jan 29, 2025
38 of 39 checks passed
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