-
-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-alg-typo
- Loading branch information
Showing
56 changed files
with
3,617 additions
and
2,472 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## New Features | ||
|
||
### 🎉 `.if()` function added to all WHERE expressions | ||
|
||
#### Select all users after cursors if a cursor value was provided | ||
|
||
```ts | ||
function getUsersAfter(cursor?: number) { | ||
return db.select().from(users).where( | ||
gt(users.id, cursor).if(cursor) | ||
); | ||
} | ||
``` | ||
|
||
## Bug Fixes | ||
|
||
- Fixed internal mappings for sessions `.all`, `.values`, `.execute` functions in AWS DataAPI |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Bug fixes | ||
|
||
- Add mappings for `@vercel/postgres` package | ||
- Fix interval mapping for `neon` drivers - #1542 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- 🎉 Added custom schema support to enums in Postgres (fixes #669 via #2048): | ||
|
||
```ts | ||
import { pgSchema } from 'drizzle-orm/pg-core'; | ||
|
||
const mySchema = pgSchema('mySchema'); | ||
const colors = mySchema.enum('colors', ['red', 'green', 'blue']); | ||
``` | ||
|
||
- 🎉 Changed D1 `migrate()` function to use batch API (#2137) | ||
- 🐛 Split `where` clause in Postgres `.onConflictDoUpdate` method into `setWhere` and `targetWhere` clauses, to support both `where` cases in `on conflict ...` clause (fixes #1628, #1302 via #2056) | ||
- 🐛 Fixed query generation for `where` clause in Postgres `.onConflictDoNothing` method, as it was placed in a wrong spot (fixes #1628 via #2056) | ||
- 🐛 Fixed multiple issues with AWS Data API driver (fixes #1931, #1932, #1934, #1936 via #2119) | ||
- 🐛 Fix inserting and updating array values in AWS Data API (fixes #1912 via #1911) | ||
|
||
Thanks @hugo082 and @livingforjesus! |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- 🐛 Fixed migrator in AWS Data API | ||
- Added `setWhere` and `targetWhere` fields to `.onConflictDoUpdate()` config in SQLite instead of single `where` field | ||
- 🛠️ Added schema information to Drizzle instances via `db._.fullSchema` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.