Skip to content

Commit f8f30c5

Browse files
author
Roman A. Grigorovich
committed
feat(psql merge): changelog.md updates
1 parent 46eb21a commit f8f30c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Added PostgreSQL `MERGE` statement support with full syntax including:
13+
- `MERGE INTO ... USING ... ON ...` with table aliases and `ONLY` modifier
14+
- `WHEN MATCHED`, `WHEN NOT MATCHED`, `WHEN NOT MATCHED BY SOURCE` clauses
15+
- `UPDATE`, `INSERT`, `DELETE`, `DO NOTHING` actions
16+
- Support for `AND condition` in WHEN clauses
17+
- `OVERRIDING SYSTEM VALUE` and `OVERRIDING USER VALUE` for INSERT actions
18+
- `RETURNING` clause support (PostgreSQL 17+) (thanks @atzedus)
19+
- Added `psql.SetVersion`, `psql.GetVersion`, and `psql.VersionAtLeast` functions for context-based PostgreSQL version management (thanks @atzedus)
20+
- Added `Table.Merge()` method for ORM-style MERGE operations with automatic `RETURNING *` for PostgreSQL 17+ (thanks @atzedus)
21+
- Added `mm` package with modifiers for building MERGE queries (`mm.Into`, `mm.Using`, `mm.WhenMatched`, `mm.WhenNotMatched`, `mm.WhenNotMatchedBySource`, etc.) (thanks @atzedus)
1222
- Added `PreloadCount` and `ThenLoadCount` to generate code for preloading and then loading counts for relationships. (thanks @jacobmolby)
1323
- MySQL support for insert queries executing loaders (e.g., `InsertThenLoad`, `InsertThenLoadCount`). (thanks @jacobmolby)
1424
- Added overwritable hooks that are run before the exec or scanning test of generated queries. This allows seeding data before the test runs.

0 commit comments

Comments
 (0)