Repository navigation
Expand versioned and cross-provider DML capabilities - #244
Merged
Merged
Conversation
tse-wei-chen
marked this pull request as ready for review
September 2, 2026 05:56
This was referenced Sep 2, 2026
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
#244 expands the closed F# DML compiler across all six database families while keeping provider/version, row-image, and cross-provider semantics explicit.
The PR now covers six capability-expansion areas:
The common INSERT / UPDATE / DELETE floor is unchanged; every added capability is represented structurally and admitted only after source and target proofs.
Capability expansion
SQLite 3.33+ UPDATE ... FROM
Oracle 26+ direct-join UPDATE ... FROM
Joined DELETE
The closed Delete.Using source-list model represents the proven joined-delete intersection:
Oracle documents duplicate source matches as deleting each target row once, so Oracle 26 joined DELETE participates in the PostgreSQL / SQL Server target-row intersection.
Joined DML approval semantics
The production DML approval path now preserves the same joined-mutation structure instead of compiling a richer mutation than it previews.
Rich RETURNING
SQL Server OUTPUT
SQL Server INSERT/UPDATE/DELETE OUTPUT is represented by the same closed result-row AST for the proven target-only column/wildcard subset.
Firebird DML target aliases
Existing conflict/upsert contracts preserved
Explicit fail-closed boundaries
TDD / grammar strategy
Every capability expansion starts with source/target/profile/assurance boundaries and production code makes only the declared proof green.
Current declared grammar floor:
The native DML capability matrix now contains 32 explicit cases across PostgreSQL, SQLite, Firebird, SQL Server, MySQL, and Oracle.
SQL Server OUTPUT adds:
Negative DML cases preserve stage ownership: syntax errors fail at Parse, version/profile problems fail at SourceValidation, and unsupported or unproven target semantics fail at TargetCapability.
Architecture
No capability is declared equivalent merely because two providers expose similarly named syntax.
Capability matrix version:
2026-09-02.76.Validation
Current head:
cfd4a5f03416da0f0f2f30cf6804b115aa5facfdTests workflow run #1411:
CodeQL Advanced run #1514:
Runtime convergence coverage additionally proves: