Commit 74ffdd5
Use lua scripts for get tag and onMutate (#4399)
* DPRINT!!!
* Updates to neon-http for `@neondatabase/serverless@1.0.0`, when released (#4237)
* Updates for @neondatabase/serverless@1.0.0 compatibility
* Clearer comments
* Linting
* Add release notes
* Shard integration tests, parallelise attw
* Thank you pnpm 10
* Split int tests by provider
* Update Neon config, fix bash
* Restore webSocketConstructor
* Use Docker for Neon
* Use docker-compose for Neon
* Fix env var
* Run Neon HTTP tests on real DB
* Downgrade attw
* Use Bun for attw
* Split unit tests
* Fix command
* Update latest pipeline
* Fix test
* Remove await
* Split relational tests
* Disable singlestore-relational
* Remove gel-relational
* Various fixes, features bundled for v0.41.0 (#4293)
* Various fixes, features bundled for v0.41.0
* Fixed broken test case
* D1 Buffer mapping fix, tests fix
* Disabled type parsers for `neon-http` driver
* [drizzle-kit] push to d1-http failed (#4268)
* drizzle-kit and push to d1-http failed
There are two reasons:
- d1-http don't support transactions with db.run("begin/commit/rollback")
- introspections run against some CF-D1 internal tables and fails later.
that could mitigated with a right tablesFilter: ['!_cf_KV'].
There was a incomplete mitigation in place which now includes _cf_KV
tables.
* chore: there are more _cf_ prefixed tables
* fix: Add escaping to sqlite pull queries
* should we pass-with-no-tests ??
* D P R I N T
* Add ci vitest config
* Bump kit, added release notes
---------
Co-authored-by: Roman <nabukhotnyiroman@gmail.com>
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
* Add Arktype validation (via `drizzle-arktype` package) (#4314)
* Export (almost) everything from validator packages
* Support infinitely recursive types in JSON columns
* Fix import
* Format
* Init drizzle-arktype
* Finish drizzle-arktype
* Sync fixes from other branch
* Update READMEs
* Update README
* Type optimizations and better debugging for tests
* Add CI/CD updates for arktype package
* Bump arktype
* bump to 0.1.2
* Update turbo config
* Bump all validator packages versions
---------
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
Co-authored-by: David Blass <david@arktype.io>
* feat: add lua scripts for get tag and onMutate
* Added hexp + peerDeps
* fix: use hexpire option in hexpire
* fix: add hset back
* dprint
* Update pnpm lock
* fix: getByTag script
* fix: exit getByTag script if compositeTable doesn't exist
* Add all test cases for pg
* Add mysql cache functions
* 0.41 (#4416)
* fix: incorrect types for inArray (#1774)
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
* Pass row type parameter to @planetscale/database's execute (#1852)
* Update session.ts
No need to cast, you can just pass a type parameter
* Update package.json
---------
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
* Don't enforce type restrictions on mysqlEnum and pgEnum to be non-empty arrays (#2429)
* Removed type restriction on non-empty arrays for mysqEnum
* Removed type restriction on non-empty arrays for pgEnum
* check values argument is not an empty array for pgEnum
* fix: typings
* Add type tests
---------
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
* Export mapColumnToSchema function (#2495)
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
* [Pg-kit] Fix malformed array literal error on indexes (#2884)
* Fix malformed array literal error on indexes
The main issue is the expression text to array conversion happening in the edited line.
Commas in an expression become delimiters and split the expression up prematurely.
Some special characters like double quotes can cause the malformed array literal errors.
The postgres function pg_get_indexdef does what the snippet above is trying to do, but safely.
* Add index introspect test
* Update pg.test.ts
Remove .only in basic index test
---------
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
* add infer enum type (#2552)
* Update how enums work in pg and mysql
* Remove duplicated exports, add related test (#4413)
* Remove duplicated exports, add related test
Fixes #4079
* Fix test
* chore: updating esbuild version in drizzle-kit (#4046)
* chore: updating esbuild version in drizzle-kit
* Fix build errors
---------
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
* Drizzle-kit: fix recreate enums + altering data type to enums, from enums in pg (#4330)
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
* Skip test and try latest gel
* Add release notes
---------
Co-authored-by: James <5511220+Zamiell@users.noreply.github.com>
Co-authored-by: Ayrton <git@ayrton.be>
Co-authored-by: April Mintac Pineda <21032419+aprilmintacpineda@users.noreply.github.com>
Co-authored-by: Matthew Ary <157217+MatthewAry@users.noreply.github.com>
Co-authored-by: Kratious <Kratious@users.noreply.github.com>
Co-authored-by: Toti Muñoz <64804554+totigm@users.noreply.github.com>
Co-authored-by: Dan Kochetov <danil.kochetov@gmail.com>
Co-authored-by: Paul Marsicovetere <71470776+paulmarsicloud@users.noreply.github.com>
Co-authored-by: Aleksandr Sherman <102579553+AleksandrSherman@users.noreply.github.com>
* Update CI/CD to 22.04
* add planetscale cache tests
* Add sqlite cache
* Add singlestore db
* Add gel cache
* Fix build errors
* Fix imports
* fix pg default schema
---------
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
Co-authored-by: George MacKerron <george@mackerron.co.uk>
Co-authored-by: Dan Kochetov <danil.kochetov@gmail.com>
Co-authored-by: Sergey Reka <71607800+Sukairo-02@users.noreply.github.com>
Co-authored-by: Meno Abels <meno.abels@adviser.com>
Co-authored-by: Roman <nabukhotnyiroman@gmail.com>
Co-authored-by: L-Mario564 <ka.mario564@gmail.com>
Co-authored-by: David Blass <david@arktype.io>
Co-authored-by: James <5511220+Zamiell@users.noreply.github.com>
Co-authored-by: Ayrton <git@ayrton.be>
Co-authored-by: April Mintac Pineda <21032419+aprilmintacpineda@users.noreply.github.com>
Co-authored-by: Matthew Ary <157217+MatthewAry@users.noreply.github.com>
Co-authored-by: Kratious <Kratious@users.noreply.github.com>
Co-authored-by: Toti Muñoz <64804554+totigm@users.noreply.github.com>
Co-authored-by: Paul Marsicovetere <71470776+paulmarsicloud@users.noreply.github.com>
Co-authored-by: Aleksandr Sherman <102579553+AleksandrSherman@users.noreply.github.com>1 parent 9acf9da commit 74ffdd5
270 files changed
Lines changed: 18448 additions & 9880 deletions
File tree
- .github/workflows
- changelogs
- drizzle-arktype
- drizzle-kit
- drizzle-orm
- drizzle-typebox
- drizzle-valibot
- drizzle-zod
- drizzle-arktype
- scripts
- src
- tests
- drizzle-kit
- src
- cli/commands
- serializer
- tests
- introspect
- push
- drizzle-orm
- src
- aws-data-api/pg
- better-sqlite3
- bun-sql
- cache
- core
- upstash
- d1
- durable-sqlite
- gel-core
- query-builders
- gel
- libsql
- mysql-core
- columns
- query-builders
- mysql-proxy
- mysql2
- neon-http
- neon-serverless
- node-postgres
- op-sqlite
- pg-core
- columns
- query-builders
- pg-proxy
- pglite
- planetscale-serverless
- postgres-js
- prisma/mysql
- singlestore-core
- columns
- query-builders
- singlestore
- sql-js
- sqlite-core
- columns
- query-builders
- sqlite-proxy
- sql
- expressions
- tidb-serverless
- vercel-postgres
- xata-http
- tests
- casing
- type-tests
- geldb
- mysql
- pg
- singlestore
- sqlite
- drizzle-typebox
- src
- tests
- drizzle-valibot
- src
- tests
- drizzle-zod
- src
- tests
- integration-tests
- tests
- gel
- imports
- mysql
- pg
- relational
- singlestore
- sqlite
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
83 | 95 | | |
84 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
85 | 241 | | |
86 | 242 | | |
87 | 243 | | |
| |||
108 | 264 | | |
109 | 265 | | |
110 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
111 | 270 | | |
112 | 271 | | |
113 | 272 | | |
| |||
130 | 289 | | |
131 | 290 | | |
132 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
133 | 297 | | |
134 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
135 | 350 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 351 | + | |
141 | 352 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
157 | 368 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
163 | 378 | | |
164 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
165 | 384 | | |
166 | 385 | | |
167 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
168 | 391 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
177 | 395 | | |
178 | 396 | | |
179 | 397 | | |
180 | 398 | | |
181 | 399 | | |
182 | | - | |
183 | | - | |
| 400 | + | |
184 | 401 | | |
185 | 402 | | |
186 | 403 | | |
| |||
0 commit comments