893 Commits

Author SHA1 Message Date
Igor Savin
72065c1797 Prepare to release 2.2.0 2022-07-19 00:24:38 +03:00
David Garner
f33768ccdd
Fix unclosed stream connections (#5243)
* Destroy should not trigger an error. If there was an error, it is piped by the transform.

* fix: Close the database connection when a stream iterator fails

Co-authored-by: Daniel Cohen Gindi <danielgindi@gmail.com>
2022-07-14 16:14:05 +02:00
Lucas Bickel
8b0dd49700
feat: inline primary key creation for postgres flavours (#5233) 2022-06-30 16:09:25 +03:00
Pedro Ramos
19c007901d
Add warning for undefined connection file (#5223) 2022-06-14 20:27:11 +02:00
Lucas Bickel
0918bf9bde
fix(postgresql): add primaryKey option for uuid (#5212) 2022-06-08 11:41:43 +03:00
Vítor Marques de Almeida
29ba203839
chore: update docs reference in sqlite3 warning (#5207) 2022-06-03 20:37:32 +02:00
ByteOPCode
8a50dd7462
feat: Add JSON parameter support for MSSQL connection (#5200)
Co-authored-by: k144 <k144@debian-BULLSEYE-live-builder-AMD64>
2022-05-29 08:07:07 +02:00
Pedro Ramos
e308184988
MSSQL: Fix .hasTable result when using .withSchema (#5176) 2022-05-22 15:56:53 +03:00
Connor Tumbleson
b20047bba5
Fixes Maria issue with 'NULL' returned instead of NULL on MariaDB 10.2.6+ (#5181) 2022-05-22 14:39:45 +02:00
Dominic Vonk
a4df3e3540
Implement extendable builders (#5041)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-05-17 13:07:26 +03:00
Ferris
ad62d9072f
Fix #4869, oracledb correctlyINSERTS Buffer (#5167) 2022-05-13 21:31:15 +02:00
Dmitry Kudryavtsev
e2516cd058
Refresh materialized view concurrently for PostgreSQL (#5166) 2022-05-08 20:15:43 +02:00
Ferris
2670c2f8b5
Add development support Typescript source files (#5144) 2022-05-01 22:02:44 +03:00
KlausBai
1525f0f916
fix: mysql hasColumn Error.(hasColumn a_id but hasColumn('a_Id') is false) (#5148) 2022-04-29 11:29:15 +02:00
Ferris
4e6a54735d
Added getDialectByNameOrAlias and converted repo to use it. (#5142) 2022-04-22 18:02:26 +03:00
Olivier Cavadenti
b8fc16f867
Restore sqlite3 package (#5136) 2022-04-21 19:05:40 +02:00
Daniel van Hoesel
3435b4602c
Wait for search path to be set before continuing (#5107) 2022-04-07 17:27:25 +02:00
Olivier Cavadenti
d0c9027a4b
Fix @vscode-sqlite3 error message (#5081) 2022-03-22 23:04:42 +01:00
Olivier Cavadenti
c3e41e3d78
Wrapped Unions Fixes (#5072) 2022-03-19 13:05:52 +01:00
Jürg Lehni
81b7edd115
Fix isModuleType() for yarn (#4447) (#5071) 2022-03-19 13:35:04 +02:00
Olivier Cavadenti
b5dbe01363
Stringify json value in update (#5063) 2022-03-15 10:47:43 +01:00
Olivier Cavadenti
a906596f06
Rework Union Wrapping (#5030) 2022-03-07 13:45:58 +01:00
Olivier Cavadenti
e0a6e54141
Subquery in on clause missing parenthesis (#5049) 2022-03-04 18:21:35 +01:00
Olivier Cavadenti
106a881e20
Add whereLike functions (#5044) 2022-03-01 20:19:35 +01:00
SP
3616791ac2
Fix batch inserts with DEFAULT values with OracleDB (#2592) (#5037)
Co-authored-by: Sven Petry <sven.petry@inform-software.com>
2022-02-26 19:05:46 +01:00
Olivier Cavadenti
600d3c3755
Fix orWhereJsonPath clause (#5022) 2022-02-13 15:11:39 +01:00
Daniel Lockyer
affb883960
Fixed primary keys being created separately on MySQL (#5017) 2022-02-10 19:06:23 +02:00
Olivier Cavadenti
47b96344c2
Fix delete joins with PostgreSQL (#5016) 2022-02-09 23:01:43 +01:00
tramplay
9f4db5ee22
Use async / await syntax in seeds as default (#5005) 2022-02-09 01:06:49 +02:00
stvsh
1461b9b06a
Fix whereJsonPath queries for postgres and cockroachdb (#5011)
Co-authored-by: Jacek Starz <jacek.starz@antsolutions.eu>
2022-02-08 20:15:38 +01:00
John Hiesey
d956aecc23
Add withMaterialized and withNotMaterialized to method-constants (#5009) 2022-02-07 23:18:35 +01:00
TJ (Thomas J.) Biddle
c4a3abc42d
Do not use sys.tables to find if a table exists (#2328)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-02-01 14:54:46 +01:00
David Straub
81d6ffad4a
Fix collation when renaming column in MySQL dialect (#2666)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-02-01 15:00:05 +02:00
Olivier Cavadenti
ffb60191db
Fix Order nulls in PostgreSQL (#4989) 2022-02-01 10:24:48 +01:00
Olivier Cavadenti
2986f8c1c0
Support string json in json values (#4988) 2022-02-01 00:01:57 +02:00
Mitch Jacovetty
f9f6a38a28
Same boolean handling in better-sqlite3 as in sqlite3 (#4982)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-02-01 00:01:00 +02:00
gzq
f50554b4c4
feat: add order and type for uuidtobin and binToUuid (#4969) 2022-01-28 18:34:38 +01:00
Shaun Sharples
4f0f0ab3e0
move deferrable to after on update/on delete (#4976)
Thank you!
2022-01-28 12:34:26 +02:00
Olivier Cavadenti
2e1016e662
Add alterType and update index.d.ts for alter function (#4967)
Co-authored-by: intech <ru31337@gmail.com>
2022-01-27 13:34:23 +01:00
Lucas Silva
2467db18e9
adding with clause in mysql dialect (#4508)
Co-authored-by: Lucas Silva <lucas.silva@codeminer42.com>
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-01-25 20:05:19 +01:00
Igor N. Dultsev
3ee6d0f022
Alter nullable constraint when alterNullable is set to true (#4730) 2022-01-24 20:22:04 +01:00
Olivier Cavadenti
6ee3f94d1a
Add raw support in onConflict clause (#4960) 2022-01-22 14:31:51 +01:00
Olivier Cavadenti
63980987a6
Support of MATERIALIZED and NOT MATERIALIZED with WITH/CTE (#4940) 2022-01-20 22:54:03 +01:00
Victor Pontis
e171d61dad
Fix error message for missing migration files (#4937) 2022-01-17 10:56:15 +02:00
Igor Savin
4a0d82f2be
Fix tests for RETURNING and enable them for SQLite. (#4934) 2022-01-16 02:20:52 +02:00
Beeno Tung
5e6b3c2d6a
remove outdated warning message (#4928)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-01-14 22:19:31 +02:00
Marek Brenčič
3f0ec9f84e
Fix for createViewOrReplace and its support for sqlite3 (#4856)
Co-authored-by: Marek "foxie" Brenčič <marek@brencic.sk>
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-01-14 11:15:03 +02:00
Lucas Silva
b42bc468a0
Inconsistencies between .select and .returning (#4471)
Co-authored-by: Lucas Silva <lucas.silva@codeminer42.com>
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-01-14 00:05:52 +02:00
Pedro Ramos
40eef5c634
Enable wrapIdentifier for SQLite .hasTable (#4915) 2022-01-10 21:10:32 +01:00
Nicola Krumschmidt
4c589a3bfa
Fix executing sqlite ddl comands when the table name is a substring of "CREATE TABLE" (#4923) 2022-01-06 23:40:14 +02:00