893 Commits

Author SHA1 Message Date
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
Daniel Teixeira
17df5c6542 add basic schema support on queries 2015-08-09 20:38:26 -03:00
Jake Russo
18f543b35d Add Earl Grey support
Add stubs for migrate, knexfile, and seed in Earl Grey. Add `.eg`
extension in  migrate and seed js files and `eg` filetype in cli js
file.

Remove dot from eg string

Update build files

Change cli to executable

Update js-interpret for earl-grey
2015-07-28 23:44:56 -05:00
John BEPPU
a0a6ab9cd5 added LiveScript migrations correctly #903
- reverted changes made to lib/
- changed the right files in src
- ran `babel -L -D -w src/ --out-dir lib/` to generate files
  from src/ to lib/
- committed files from src/ and their counterparts in lib/
  together as one commit
2015-07-27 10:40:43 -07:00
John BEPPU
dc9b75440b Revert "add LiveScript support back in to knex migrations"
This reverts commit 987b6d9f3fd47f7c25c7e112d6e6d2aee53911ba.
2015-07-27 10:22:41 -07:00
Rhys van der Waerden
556fa6c76a Merge pull request #896 from helios1138/patch-1
fixed connection error handling for oracle dialect
2015-07-21 13:38:41 +10:00
John BEPPU
987b6d9f3f add LiveScript support back in to knex migrations 2015-07-20 10:40:47 -07:00
Rhys van der Waerden
39f6d845a4 Merge pull request #901 from jevakallio/feature/compose
Add builder as first parameter to `queryBuilder.modify`
2015-07-17 11:02:33 +10:00
Jani Evakallio
cb89930155 Add queryBuilder as first parameter to queryBuilder.modify 2015-07-16 15:49:30 +01:00
Rhys van der Waerden
b487e2cabe Merge pull request #881 from jevakallio/feature/compose
Improve query composability and support for utility functions
2015-07-17 00:19:26 +10:00
Jani Evakallio
299bbfa60b Rename compose to modify 2015-07-16 15:15:04 +01:00
Daniel Qin
c57d7e3de9 re-create fk with ref.CONSTRAINT_NAME instead of ref.COLUMN_NAME 2015-07-16 14:40:04 +08:00
Helios
962d09de6d fixed connection error handling for oracle dialect 2015-07-13 12:04:40 +03:00
Jani Evakallio
de8a2e5da6 Commit babel artifacts for queryBuilder.compose 2015-07-09 16:10:14 +01:00
Daniel Qin
19acfaffd6 fixed issue cannot rename column in migrations when there is FK references 2015-07-07 12:35:55 +08:00
Tim Griesser
6dbcaaaeaf Empty queries should be no-ops on mysql 2015-06-30 19:37:07 -04:00
Tim Griesser
04c20439ec Recompile after merging oracle patch, #876 2015-06-29 13:07:28 -04:00
Tim Griesser
7b3d4bf96c Add test for postgres stream 2015-06-01 15:45:02 -04:00
Tim Griesser
6cef074236 Fix correct files for #851 2015-06-01 09:22:27 -04:00
Tim Griesser
421cb4f4eb Commit compiled files 2015-06-01 09:17:11 -04:00
Tim Griesser
ccc1c6ce23 Fix #843, pass compress option to mysql2 2015-06-01 08:33:32 -04:00
Tim Griesser
c60b525e50 Merge pull request #851 from tgriesser/issue-849
Issue 849
2015-06-01 08:03:54 -04:00
Tim Griesser
edefe53df9 Better fix for #852 2015-06-01 07:55:04 -04:00
Tim Griesser
90105e064f Fix #852, parse qs parameters for connection 2015-06-01 07:39:57 -04:00
Tim Griesser
cf757a5647 Fix #853, raw bindings should be optional 2015-06-01 07:30:38 -04:00
Kris Reeves
c1c6d401b8 Also fix up postgres _stream function to bind an error handler on the query object 2015-05-29 12:41:33 -04:00