325 Commits

Author SHA1 Message Date
Calvin Metcalf
957cad6a43 create if not exists 2014-07-17 11:27:02 -04:00
Calvin Metcalf
030bdf1e5a transactions 2014-07-17 08:34:53 -04:00
Sohum Banerjea
4904a7f320 Only nest raws when the sql is a string 2014-07-17 18:51:36 +10:00
Sohum Banerjea
a638a54f78 Allow nested Raw queries
* Do the recursive step on constructor
* Splice in parameter strings based on ? indexes
* Concat bindings
2014-07-17 17:26:40 +10:00
Tim Griesser
570a551f41 Trim whitespace when escaping 2014-07-14 15:19:03 -04:00
Tim Griesser
7340807670 Named Pool function for consistency 2014-07-14 13:57:48 -04:00
Tim Griesser
86c0863147 remove knex.utils, move pgBindings to client.positionBindings 2014-07-14 13:51:43 -04:00
Tim Griesser
ae2b5a3b24 Move destroy method to client, proxy from knex.destroy 2014-07-14 13:48:17 -04:00
Tim Griesser
590d767839 Utilize es5 getters for cleaner schema/migrate 2014-07-14 13:47:19 -04:00
efoster
7ad17ea816 Avoid crashing an app 2014-07-13 11:26:00 -07:00
Tim Griesser
19eee6970c Support more config options in websql 2014-07-11 11:52:40 -04:00
Calvin Metcalf
aa13aa56f0 typo in websql runner 2014-07-11 08:13:36 -04:00
Tim Griesser
521f22aec2 Fix #363, prepare postgresql parameters for streaming 2014-07-10 12:31:18 -04:00
Tim Griesser
e9e9b78b79 Merge pull request #349 from calvinmetcalf/chained
chained where and join
2014-07-08 06:45:25 -04:00
Michael Williams
d6554b1817 properly forward stream errors 2014-07-07 22:44:28 -07:00
Calvin Metcalf
ef981aa566 chained not, or, and and 2014-07-03 14:19:36 -04:00
Tim Griesser
ecf528af3a Fix checkModule -> checkLocalModule 2014-07-02 10:19:45 -04:00
Pelle Wessman
7b91eb0847 Warn if local knex module is missing
If one tries to do a "knex init" prior to having added the knex module locally to ones project, then one previously didn't get a warning – just a confusing error about a file not being found. Now an error is shown instead.
2014-07-01 19:59:26 +02:00
Tim Griesser
920d1ef16e Fix #344, case insensitive operators 2014-06-30 12:42:33 -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
4edf47dfb4 support password, ssl, stream options in node-mysql2 - #341 2014-06-27 11:58:06 -04:00
Nathan Smith
b13fd4008a Help text error for migrate:latest
Changed the help text for migrate:latest as described in the documentation.
2014-06-27 00:33:50 -04:00
Tim Griesser
a1be2e9663 Fix #337, stream only syntax should not return a promise 2014-06-25 02:42:22 -04:00
Tim Griesser
4e79c27a07 Adding missing promise map / reduce proxies 2014-06-23 19:00:21 -04:00
Tim Griesser
87e4cc9435 Comments and a few minor changes to start event 2014-06-22 15:11:01 -04:00
Whitney Young
c957e7b184 Emit start & end events for queries being run. 2014-06-22 11:13:28 -07:00
Tim Griesser
7645804ec2 Make the client object an EventEmitter, #336
Proxy any events to the "knex" instance from the
client object.
2014-06-20 07:31:52 -04:00
Whitney Young
6b80bbda8b Use strict in stubs. 2014-06-18 14:30:24 -07:00
Tim Griesser
fa42db09de Increment/decrement returns affectedRows, with tests - #330 2014-06-18 12:39:58 -04:00
Tim Griesser
0d216baba5 MariaDB processResponse method consistency 2014-06-18 12:11:30 -04:00
Tyler Kellen
690e984934 support --cwd with commander 2014-06-16 10:02:44 -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
1e936ffd3c Fix #308 onDelete / onUpdate in PostgreSQL, with tests 2014-06-12 14:00:44 -04:00
Tim Griesser
7722011721 Tests for #314 2014-06-12 14:00:44 -04:00
Tim Griesser
246e767815 Fix for boolean default types in PostgreSQL 2014-06-10 16:40:59 -04:00
Tim Griesser
9d5fed20d1 Fix for multiple orderBy statements in sqlite3 2014-06-10 13:26:20 -04:00
Tim Griesser
04cab6df44 release 0.6.10 2014-06-10 11:52:42 -04:00
Tim Griesser
c804822c6d release 0.6.9 2014-06-09 21:28:49 -04:00
Tim Griesser
64c1fb1dcf release 0.6.7 2014-06-09 19:58:01 -04:00
Tim Griesser
6af64d32a1 Adding support for mysql2, https://github.com/sidorares/node-mysql2 2014-06-09 16:27:03 -04:00
Tim Griesser
ad3f9f6f5e SQlite3 DDL fixes, more for #46
Don't throw when trying to add foreign key
Allow dropping a column in sqlite3
2014-06-09 15:28:22 -04:00
Tim Griesser
32a6a83a5a Add support & document raw.wrap 2014-06-09 15:26:48 -04:00
Tim Griesser
9e16ebf395 release 0.6.5 2014-06-09 12:57:10 -04:00
Tim Griesser
f2b59a2617 enable schema.raw method 2014-06-09 10:27:58 -04:00
Tim Griesser
c3f21e47cd Fix #298 and tests 2014-06-06 17:27:59 -04:00
Tim Griesser
c10001dc59 don't add undefined columns 2014-06-06 17:27:09 -04:00
Tim Griesser
9e5f73c409 fix for #298, resolve transaction with correct value 2014-06-06 14:11:42 -04:00
Tim Griesser
e73217e4c5 release 0.6.2 2014-06-04 16:24:29 -04:00
Tim Griesser
4da19754f8 Fix #297 - raw query should pass through response 2014-06-04 15:55:41 -04:00