61 Commits

Author SHA1 Message Date
tkalliom
02d94d96b0
Reduce size of lodash in bundle (#3804) 2020-04-18 19:41:23 +02:00
Igor Savin
85888ce3c2
Prepare to release 0.20.11 (#3689) 2020-03-05 21:43:57 +01:00
Lorefnon
589ea747c2
Update QueryCompiler implementation to use classes (#3647) 2020-02-01 17:22:00 +01:00
Igor Savin
9b37c9480b
Return more information about empty updates (#3597) 2019-12-28 22:36:14 +01:00
Thomas Sondergaard
c277edbaf1 Use more efficient algorithm for generating internal ids (#3595) (#3596) 2019-12-27 20:16:38 +01:00
Lorefnon
f87b28c3e3 Add support for distinct on for postgres (#3513)
Resolves #3472
2019-11-11 00:51:47 +01:00
Edvard Chen
0560959fa4 feat: wrap subQuery with parenthesis when it appears as table name (#3496) 2019-10-28 21:38:01 +01:00
EthanHur
2d0459111d orderBy accepts QueryBuilder (#3491) 2019-10-24 16:08:12 +02:00
Igor Savin
988fb24389
Fix MSSQL escaping (#3382) 2019-10-06 20:21:32 +02:00
Kristjan
4ade98980e feat: add undefined columns to undefined binding(s) error (#3425) 2019-09-04 22:59:04 +02:00
Igor Savin
49456691d8
Update dependencies (#3366) 2019-07-23 18:00:13 +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
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
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
harriha
478b03e106 Update lib/ via running 'npm run dev' 2015-08-30 23:34:09 +03:00
Daniel Teixeira
17df5c6542 add basic schema support on queries 2015-08-09 20:38:26 -03:00
Tim Griesser
521a6f9e97 Remove use strict, assumed in ES6 2015-05-09 14:01:19 -04:00
Tim Griesser
7e884cb325 Babel src -> lib, remove gulp 2015-05-09 13:58:18 -04:00
Tim Griesser
3e1872731e Fix for #605, options preserved in standalone Raw query 2015-04-30 18:07:16 -04:00
Tim Griesser
c529358fcb Allow object syntax for join, #743 2015-04-29 15:13:15 -04:00
Tim Griesser
02e50f28d6 Fix regression in insert query compilation, needs test 2015-04-28 19:12:04 -04:00
Tim Griesser
0c0864761c Test and fix for #749 2015-04-24 10:31:23 -04:00
Tim Griesser
e570c167c1 JSHint and formatting 2015-04-22 15:39:29 -04:00
Tim Griesser
f9aab9dc76 Major internal refactor
Beefed up transaction implementation, still needs tests
and cleanup of nested transaction queues.

Left todo:
- Fix commented out tests
- Fix oracle driver's transactions
2015-04-22 10:34:14 -04:00
Tim Griesser
eee4e9c005 Fixing the overall class dependency approach, lots of internal cleanup, WIP 2015-04-19 16:31:52 -04:00
Ozum Eldogan
ff9ede59e9 whereNot, orWhereNot
whereNot, orWhereNot methods added to single and wrapped wheres.
2015-02-26 16:31:30 +02:00
David H. Bronke
973b2fc769 Don't pass tableName through the formatter until it's needed.
Fixes #704.
2015-02-24 10:15:20 -06:00
Ben Drucker
27810950ed Properly handle limit 0 2014-11-30 19:47:50 -05:00
Philipp Waldmann
8866af423d support for nested having 2014-11-20 20:52:18 +01:00
Tim Griesser
2ff6323f39 Support for .join(table, raw) and join using 2014-10-01 19:18:25 -04:00
Vincent Schoettke
72cf342273 Fixes #319. Inserting multiple rows with default values 2014-09-08 16:10:43 +02:00
Vincent Schoettke
4c43d69313 Enabled eqeqeq jshint restriction and fixed warnings 2014-09-03 11:04:10 +02:00
Vincent Schoettke
f3874ac651 Fixed several jshint warnings. Added strict mode 2014-09-01 17:19:34 +02:00
Vincent Schoettke
8f5ccc1e45 Fix #440, orderBy with raw argument should use direction 2014-09-01 14:16:07 +02:00
Tim Griesser
289c661152 Fix #427, raw / subqueries on insert 2014-08-24 14:50:29 -04:00
Tim Griesser
ac984b9e9b Add .joinRaw and remove deprecated join notices 2014-08-14 18:02:50 -04:00
Tim Griesser
295f57d296 Fix #282, add raw support in groupBy / orderBy
Adds groupByRaw, orderByRaw as convenience methods
for groupBy(raw) / orderBy(raw)
2014-06-27 11:58:06 -04:00
Tim Griesser
e9dea0435d Support alias subselect with 'as' method 2014-06-14 16:26:01 -04:00
Tim Griesser
215864ec70 .whereExists / .whereNotExists may also take knex builder 2014-06-14 09:58:38 -04:00
Tim Griesser
e73217e4c5 release 0.6.2 2014-06-04 16:24:29 -04:00
Tim Griesser
af1f9e83ae Fix #244, normalize for inconsistent insert rows 2014-06-03 00:47:54 -04:00
Tim Griesser
7f4cc4e287 code consistency 2014-04-27 19:38:18 -04:00
Tim Griesser
c1ee0f5708 columnInfo, adapted code from @johanneslumpe in #190 2014-04-21 23:08:59 -04:00
Tim Griesser
c6dac39cb7 minor code cleanup 2014-04-16 10:41:16 -04:00
Tim Griesser
17c41f1b20 renaming utils to helpers, helper to utils 2014-04-16 04:29:20 -04:00
Tim Griesser
f27c0e60fa merging refactor branch 2014-04-16 03:49:25 -04:00
Tim Griesser
6c76cc5cf0 adding jshint, cleaning unused variables 2014-04-16 03:22:47 -04:00
Tim Griesser
1e3fd57e16 updating tests for a few recent pr's 2014-04-16 02:59:27 -04:00
Tim Griesser
db2f9e7f08 merge with master 2014-04-16 02:50:19 -04:00