Olivier Cavadenti
ffb60191db
Fix Order nulls in PostgreSQL ( #4989 )
2022-02-01 10:24:48 +01: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
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
Igor Savin
4a0d82f2be
Fix tests for RETURNING and enable them for SQLite. ( #4934 )
2022-01-16 02:20:52 +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
Olivier Cavadenti
4494113187
Checks Constraints Support ( #4874 )
...
Co-authored-by: Ivan Zhuravlev <intech@users.noreply.github.com>
2022-01-06 14:44:16 +01:00
Olivier Cavadenti
b6775d9b00
Create multiple PKs with increments ( #4903 )
2022-01-03 20:55:24 +01:00
Olivier Cavadenti
8835d22652
Json advanced support ( #4859 )
2021-12-22 10:47:16 +01:00
Olivier Cavadenti
27ade6f881
Add columns in create table like #4821
2021-11-10 21:24:34 +01:00
Olivier Cavadenti
49e597df85
[CLEAN] Remove duplicate code ( #4813 )
2021-11-09 09:34:19 +01:00
Olivier Cavadenti
ffd0c101f7
Support Joins and Using syntax for PostgreSQL Delete Statement ( #4800 )
2021-11-07 14:22:49 +01:00
Olivier Cavadenti
a431485aa6
Zero precision in timestamp/datetime #4784 ( #4786 )
2021-10-30 23:28:21 +02:00
Olivier Cavadenti
ace439d5c7
Implement partial index support ( #4768 )
2021-10-26 00:37:26 +03:00
Dominik Krejcik
a17cc3214a
Support SELECT .. FOR NO KEY UPDATE / KEY SHARE row level locking clauses in Postgres ( #4755 )
2021-10-23 16:01:36 +03:00
Olivier Cavadenti
60db2d25a2
View support ( #1626 ) ( #4748 )
2021-10-20 23:23:29 +03:00
Olivier Cavadenti
7c52de9f23
Create table like support ( #1373 ) ( #4728 )
2021-10-15 16:57:46 +03:00
OlivierCavadenti
6892c2c7c0
Add support for 'CASCADE' in PostgreSQL 'DROP SCHEMA' queries ( #4713 )
2021-10-09 01:23:02 +03:00
Igor Savin
c2c9446c29
Fix JSON support for CockroachDB ( #4701 )
2021-10-03 21:33:24 +03:00
Igor Savin
941b660f53
Initial infrastructure for CockroachDB ( #4571 )
2021-10-02 23:45:17 +03:00
Matt Machuga
01cfa98c2c
Adding support for pg-native
( #4327 )
2021-09-06 16:04:23 +03:00
Igor Savin
8d75615524
Implement nullability modification via schema builder ( #4657 )
2021-08-28 20:41:54 +03:00
Maximilian-Albin Ekström
3a083d9b0e
fix: use sys info function instead of connection db name ( #4623 )
...
Co-authored-by: Maximilian-Albin Ekström <maximilian-albin.ekstrom@instabox.se>
2021-08-20 12:51:21 +03:00
zeotuan
45916f97ee
Add deferrable support for constraint ( #4584 )
2021-07-25 10:23:17 +03:00
zeotuan
55eadcf7ad
Fixing posgres datetime and timestamp column created with wrong format ( #4578 )
2021-07-21 01:23:20 +03:00
Calvin Metcalf
f78c3618e2
add obility to omit collumns on an onConflict().ignore() ( #4557 )
2021-07-10 14:54:07 +03:00
martinmacko47
1744c8c265
Fix timeout method ( #4324 )
2021-03-22 01:33:59 +02:00
Nicola Krumschmidt
c43fd7269e
Throw error if the array passed to insert is empty ( #4289 )
2021-02-15 19:03:48 +02:00
Matt
a4b6db85a9
Added merge strategy to allow selecting columns to upsert. ( #4252 )
...
Co-authored-by: Matt Goodson <matt.goodson.business@gmail.com>
2021-02-09 10:04:43 +02:00
Igor Savin
9c390036db
Move "parameter" out of formatter ( #4275 )
2021-02-04 15:54:26 +02:00
Igor Savin
2040bd11a4
Move more logic over from formatter ( #4273 )
2021-02-03 21:17:20 +02:00
George Petrov
57184acd63
Primary keys improvements ( #4266 )
2021-02-03 14:47:32 +02:00
maximelkin
b9fb5992b5
Migrate to classes ( #4253 )
2021-01-31 12:40:13 +02:00
Morgan Zolob
92907e80e2
Add check to only create native enum once ( #3658 )
...
Co-authored-by: Morgan Zolob <morgan.zolob@ingrooves.com>
2021-01-16 16:16:00 +02:00
Igor Savin
b111771117
Clean up querybuilder ( #4220 )
2021-01-09 17:59:53 +02:00
Igor Savin
cd6479bf0b
More formatter cleanup ( #4218 )
2021-01-07 23:34:46 +02:00
Igor Savin
067a1a0326
Extract more of the formatter logic ( #4214 )
2021-01-07 17:31:56 +02:00
Igor Savin
a9773b79a3
Extract static methods outside of a formatter ( #4213 )
2021-01-07 02:04:10 +02:00
Igor Savin
0b2a2ca4d1
Extract static method _num out of class. Use super-methods ( #4212 )
2021-01-06 23:21:10 +02:00
Igor Savin
6275ea3b08
Migrate columncompiler to classes ( #4193 )
2021-01-01 20:35:54 +02:00
Igor Savin
0e09fcd3c1
Refactor to classes (part 2) ( #4191 )
2021-01-01 18:46:16 +02:00
Igor Savin
b43dadbe01
Refactor to classes ( #4190 )
2021-01-01 17:46:10 +02:00
Ben Lu
a31f0400e6
Add transaction isolation support ( #4185 )
2020-12-30 18:13:35 +02:00
Mark Boyd
76c131e2a9
Add support for WHERE clauses to "upsert" queries ( #4148 )
2020-12-09 17:51:29 +02:00
Nico Burns
8d43019873
Implement "UPSERT" (Postgres/MySQL/Sqlite) ( #3763 )
2020-10-31 17:22:52 +02:00
Igor Savin
20629af916
Fix comment escaping for MySQL and PostgreSQL ( #4084 )
2020-10-27 10:05:21 +02:00
Bogdan Chadkin
80355e4850
Replace inherits package with builtin utility ( #4059 )
2020-10-05 23:59:12 +03:00
Bogdan Chadkin
6f817a3b6e
Avoid lodash typecheks ( #4056 )
...
* Avoid lodash typecheks
Lodash is quite big project. Even with direct imports it loads [tons](https://github.com/knex/knex/pull/3804 ) of
code and still bloats node_modules. Especially since lodash mostly used
as a polyfill for modern features.
In this diff I attempted to reduce lodash usage by replacing type checks
with `typeof` operator which might be sufficient.
Also replaced lodash/isObject with custom simplified utility which does not
consider functions as objects and allows to simplify code in one place.
2020-10-05 21:29:39 +03:00
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release ( #3811 )
2020-04-19 00:40:23 +02:00