Kevin Anthoney
72aff9012a
Add date time interval functionality to postgres and mysql dialects ( #326 )
* Add date time interval functionality to postgres and mysql dialects
* Add date interval test involving years and months
8 years ago
petrovi4
1049cd7508
Added value expression for ? operator "contain key" ( #334 )
8 years ago
Kyle Lilly
301840e434
Fix issue when calling insert with an object that has a length property instead of an array. ( #337 )
8 years ago
Kyle Lilly
b2278ff99c
Fix adding/dropping columns with oracle. ( #338 )
8 years ago
Rohit Singh
cc897ca793
the ON CONFLICT feature for #PostgreSQL was missing camelcase support… ( #342 )
* the ON CONFLICT feature for #PostgreSQL was missing camelcase support of column names
this commit fixes that and takes care of issue #341
it now honours snakeToCamel set to true
* we can quote the column name only once and save extra operation
8 years ago
Brian M. Carlson
3f48a69cc6
Bump version
8 years ago
Rohit Singh
f10abbed79
Add support for ON CONFLICT as a support for upserts in PostgreSQL ( #335 )
* Add support for ON CONFLICT as a support for upserts in PostgreSQL
PostgreSQL supports upserts by ON CONFLICT clause provided
in versions 9.5 and above. This should fix issue #333
* avoid redefining variable
* fix scope
8 years ago
Brian M. Carlson
5ec7827cf6
Bump version
8 years ago
danrzeppa
eba2de6dc7
Alias a query with AS ( #329 )
* Added a sql.literalColumn function for selecting literal/constant values.
* - Added tests for function call on a literal column
* Converted tabs to spaces.
* Renamed "literalColumn" to "constant"
* Added missing semicolons causing the Travis build to fail.
* Added missing semicolon
* Added ability to attach AS to a query.
8 years ago
brianc
b987e5c9db
Bump version
8 years ago
Kevin Anthoney
6786f50b89
Use count(*) syntax for MySQL instead of count(`table`.*) ( #325 )
8 years ago
Brad Dunbar
cf928eeb2b
_.isArray -> Array.isArray ( #309 )
8 years ago
brianc
e6b40a9668
Bump version
9 years ago
Barry Hammen
bc4d8d9dd0
Fix sqlite date functions for epoch ( #319 )
9 years ago
brianc
eec86e41ed
Bump version
9 years ago
Barry Hammen
e00acabe56
Add support for basic date functions ( #318 )
9 years ago
brianc
297daf305f
Bump version
9 years ago
Kevin Anthoney
43b6c35095
Add table level foreign keys
* Add table level foreign keys
* Make refColumns optional in foreign keys
* Add constraint name to foreign keys
* Add on update clause to foreign keys, and also to column references while I was at it
* Add actions SET NULL, SET DEFAULT and NO ACTION for onDelete and onUpdate for foreign keys and column references
9 years ago
HughePaul
a43efacde5
Merge pull request #305 from iamcharliegoddard/jshint-fix
jshint-fix: fix for jshint error
9 years ago
iamcharliegoddard
046d6dc19f
jshint-fix: fix for jshint error
9 years ago
Brian C
39be3f3f09
Merge pull request #301 from danrzeppa/dan-mssqlinsertselect
INSERT INTO ... SELECT create with .add()
9 years ago
Brian C
600abc18c5
Merge pull request #281 from BeeDi/master
Adding specific constraint to table definition
9 years ago
Dan Rzeppa
687eecf350
Addresses issue when generating INSERT INTO ... SELECT statements created using the .add() function.
9 years ago
Brian C
5765c7310c
Merge pull request #300 from danrzeppa/dan-querynodevalueexpr
Extend query with value expressions
9 years ago
Brian C
0c9407b935
Merge pull request #298 from tmont/no-console-logging
No console logging
9 years ago
Dan Rzeppa
50e184c62a
Fixed a couple of jshint errors.
9 years ago
Dan Rzeppa
69b3173577
Added another test for generating select clauses without from clauses.
9 years ago
Dan Rzeppa
775e93829a
Extend query with value expressions to create allow creating select statements that can be joined together with expressions.
9 years ago
beedi
091b0b91a3
Fix merge conflict on tests
9 years ago
Brian C
b0372e355c
Merge pull request #297 from tmont/lodash-upgrade
upgraded to lodash@4.1.x
9 years ago
tmont
2e00b11f5c
only log stuff to the console if NODE_ENV=debug
fixes #275
9 years ago
tmont
02b6f064c5
removed dead code
9 years ago
tmont
e734df273c
upgraded to lodash@4.1.x
fixed #296
9 years ago
brianc
d0cc3c7449
Bump version
9 years ago
Brian C
23a63535bd
Merge pull request #295 from ericjperry/with_barrys_changes
Second attempt at fixing Postgres arrays
9 years ago
Eric Perry
91b34eceaf
Fixed some rebase issues
9 years ago
Eric Perry
e0bd0630f1
Updated array tests that Barry changed and fixed insertion of arrays of objects in Postgres
9 years ago
brianc
8af5b48679
Bump version
9 years ago
Brian C
39c66c5d7c
Merge pull request #294 from brianc/revert-array-changes
Revert "Merge pull request #290 from ericjperry/master"
9 years ago
brianc
7f072ae52e
Revert "Merge pull request #290 from ericjperry/master"
This reverts commit 7a640319d3
, reversing
changes made to cbd17ea230
.
9 years ago
brianc
51ccfa3260
Test on more node versions
9 years ago
brianc
6926e2166b
Call mocha directly
9 years ago
Brian C
244a96acdb
Merge pull request #288 from iamcharliegoddard/jshint
Jshint: fixed jshint issues
9 years ago
Brian C
7a640319d3
Merge pull request #290 from ericjperry/master
Fixed PostgreSQL array insertion syntax.
9 years ago
Brian C
cbd17ea230
Merge pull request #291 from barryhammen/fix_update_types
Fix booleans and objects
9 years ago
Eric Perry
a84041c125
Moved variable declaration
9 years ago
Eric Perry
74079157f6
Added tests for postgres array insert
9 years ago
Eric Perry
bc10263b42
Alias 'this' because we're in a closure
9 years ago
Eric Perry
f6885792b0
Correctly double quote strings within arrays for PG
9 years ago
Eric Perry
83428c872f
Add quotes around array
9 years ago