Harminder Virk
831b9bcc43
fix: make transaction rejection consistent across dialects ( #3399 )
2019-08-17 13:01:03 +02:00
Igor Savin
871dadb348
More consistent handling of nested transactions ( #3393 )
2019-08-16 16:28:25 +02:00
Igor Savin
2c3b4ded7b
Fallback to JSON when using JSONB in MySQL ( #3394 )
...
fixes #3386
2019-08-14 17:11:01 +02:00
Felix Mosheev
8111bb3ee8
Feat: Allow to extend knex query builder ( #3334 )
2019-07-23 20:45:03 +02:00
Igor Savin
49456691d8
Update dependencies ( #3366 )
2019-07-23 18:00:13 +02:00
Matthew Kuo
054ce36b0a
Add .isCompleted() to transaction ( #3368 )
2019-07-23 17:59:55 +02:00
Lorefnon
3e1a5ee0de
Minor enhancements around aliasing of aggregates ( #3354 )
...
- Allows an options object to specify alias (as suggested in https://github.com/tgriesser/knex/issues/3315#issuecomment-507439215 ) (Closes #3315 )
- Allows multiple aliases when using object syntax (Closes #2871 )
2019-07-16 18:48:28 +02:00
Igor Savin
fb06464da0
Update tarn.js ( #3345 )
...
* Update tarn.js
* Remove beforeDestroy
2019-07-11 14:57:59 +02:00
Ricardo Graça
9aa7085b05
Rename src directory to lib ( #3338 )
2019-07-10 23:48:43 +02:00
Mikael Lepistö
7140a48226
Remove generated lib from repository and run build in prepublish
2016-01-21 09:59:30 +02:00
Sky Morey
aa6cb2eb9c
merge
2015-12-15 16:50:47 -06:00
Sky Morey
eed0004031
mssql: added top (?) back to fix that error. also removed loading of empty file
2015-12-15 16:48:19 -06:00
Tim Griesser
43dbdadb90
Remove invalid JoinClause require from mssql index.js
2015-12-15 16:54:43 -05:00
Sky Morey
03f4993642
Merge branch 'master' of github.com:tgriesser/knex
2015-12-15 14:57:14 -06:00
Sky Morey
ae256f2943
mssql limit and offset for sql2012
2015-12-15 14:56:56 -06:00
Mikael Lepistö
3dd5ac896a
npm run build (for changed file)
2015-12-15 21:50:17 +02:00
Sky Morey
f99d3952a1
changed mssql to compact create format. changed unique index to unique constraint
2015-12-14 16:20:45 -06:00
Sky Morey
aa8df07711
merge
2015-12-14 11:10:46 -06:00
Sky Morey
390d3e1d37
added formatting to schema builder
2015-12-14 11:00:51 -06:00
Sky Morey
371815d7e6
made SCHEMA upper case for mssql
2015-12-14 09:56:53 -06:00
Mikael Lepistö
c22a51e5ad
Merge pull request #886 from bblack/dialect_escaping
...
Per-dialect escaping
2015-12-13 20:50:44 +02:00
Tim Griesser
e2ef445f04
Merge pull request #973 from myndzi/double-release
...
Don't attempt to release resources that have been disposed of already
2015-12-12 14:33:34 -05:00
Sky Morey
f9a9bddb5d
lib files. lib should really be moved to the .gitignore since babel creates them
2015-12-10 15:22:29 -06:00
Sky Morey
4f340d6096
Merge branch 'master' of github.com:tgriesser/knex
2015-12-10 15:16:23 -06:00
Sky Morey
198aa0db4b
fixed lint issues, fixed mssql transaction
2015-12-10 13:35:37 -06:00
Rhys van der Waerden
84472e6e7e
Merge pull request #1081 from tgriesser/fix/1080
...
Include `_debug` property in `QueryBuilder#clone`.
2015-12-10 15:31:14 +11:00
Sky Morey
afd6b66624
Final build of mssql provider, all tests pass
2015-12-09 17:53:53 -06:00
Sky Morey
7c1120e0e2
in progress
2015-12-08 11:37:31 -06:00
Brian Black
27b0a57823
do not escape doublequotes in postgres
2015-11-29 18:54:05 -05:00
Brian Black
56d808fe0a
set SqlString for base client
2015-11-29 18:44:12 -05:00
Brian Black
cee729cad0
Properly escape single quotes in postgres
2015-11-29 18:44:12 -05:00
Brian Black
c6230568cd
SqlString is now per-dialect
2015-11-29 18:44:12 -05:00
Rhys van der Waerden
8ef5d5899d
Include _debug property in QueryBuilder#clone.
...
Adds a test for `QueryBuilder#clone`. Changes `clone()` behaviour to transfer the debug flag (`QueryBuilder#_debug`) to the cloned instance.
Fixes #1080
2015-11-30 00:21:08 +11:00
Dustin Martin
d9ac2c1f8f
Add status method
...
Returns 0 if all migrations are run and DB is up to date. Return negative number if DB is missing migrations. Return positive number if DB is ahead (rare case, e.g. if migrations were run then code is reverted)
2015-11-23 10:50:19 -06:00
Rhys van der Waerden
ebd361ffce
Merge pull request #994 from wubzz/bugfix/query_event_when_using_transactions
...
Query event in Transaction should be proxied to the main client
2015-11-17 23:27:15 +11:00
Mikael Lepistö
e2eacc7d6e
Ran 'npm run build' since tape tests would not pass if build is not updated.
2015-11-10 23:27:26 +02:00
Rhys van der Waerden
bd97610940
Merge pull request #1046 from ErisDS/issue-1028
...
Distinct modifier support for aggregate functions
2015-11-10 00:06:02 +11:00
Hannah Wolfe
f72892b5b9
Distinct modifier support for aggregate functions
...
closes #1028
- add support for count(distinct *), avg(distinct *) and sum(distinct *)
- min and max don't really make sense with distinct, so didn't add those
2015-11-09 12:48:42 +00:00
Chuy Del Castillo
6e7049c8bd
checking for plain object instead object
2015-11-06 16:17:50 -07:00
Rhys van der Waerden
360ffc77d3
release 0.9.0
2015-11-02 14:54:38 +11:00
blah238
1ee32292d4
Add Travis testing for Node v4.x
...
- Update node-mariasql to 0.2.x
- Closes #970
- Closes #977
- Closes #995
2015-10-27 17:38:56 -05:00
wubzz
4cba0d963c
Query Event is now proxied to the main client like in previous versions of knex. Fixes #855
2015-09-19 14:45:01 +02:00
Kris Reeves
f83d28e508
Don't attempt to release resources that have been disposed of already
2015-09-12 09:43:40 -07:00
harriha
c41ffdb02a
Update lib/ via running 'npm run dev'
2015-09-08 14:00:17 +10:00
harriha
478b03e106
Update lib/ via running 'npm run dev'
2015-08-30 23:34:09 +03:00
Mikael Lepistö
fef0a09197
Did npm run build
2015-08-25 10:23:34 +03:00
Daniel Teixeira
8e780a8115
rename .using to .withSchema
2015-08-14 19:17:06 -03:00
Daniel Teixeira
70e4692638
add support to postgres search_path
2015-08-09 23:04:57 -03:00
Daniel Teixeira
3f8f50425f
add schema support for schema builder
2015-08-09 23:04:53 -03:00
Daniel Teixeira
402dbd9903
add schema support for postgres queries
2015-08-09 20:48:33 -03:00