Repository navigation
feat: add field existence operators, formalize null contract, and update audit scorecard (96.7/100) - #38
Merged
Conversation
docs: specify null comparison contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR merges all verified enhancements from
devintomain, delivering full resolution for Issues #35 and #36:Formalized SQLite JSON Null Comparison Contract (Closes [Docs & Tests] Formalize contract and add tests for null and missing field filtering in where() #35):
README.md,_DOCS/README.md, and_DOCS/SPECIFICATION.md:.where("field", "=", $null): Loose null match (matches both explicit JSON nulls and missing fields viajson_extract(...) IS NULL)..where("field", "!=", $null): Matches only present, non-null values viajson_extract(...) IS NOT NULL..whereType("field", "null"): Matches strictly explicit JSON nulls viajson_type(...) = 'null'.TC-61.Field Existence & Missing Filtering (Closes [Feature] Add explicit 'exists' / 'missing' operator to where() filter API #36):
whereExists([string]$field)andwhereMissing([string]$field)fluent methods to[PSLocalBase].exists,-exists,missing,-missing.json_type(doc, '$.field') IS NOT NULL/IS NULL.TC-84in_TESTS/PSLocalBase.Tests.ps1covering scalar fields, deep dot-paths, array indexing, CLR boolean type validation, and query builder immutability.Audit Scorecard & Documentation Synchronization:
README.mdand_DOCS/FINAL-VERIFICATION-REPORT-v2.md._DOCS/SPECIFICATION.mdand_TESTS/README.mdto 84 of 84 passing.CHANGELOG.mdwith Unreleased section.Verification & Test Results