Oliver Schneider
2b0c930f2f
Don't use "collate nocase" in sqlite order by, because it makes things terrible slow, because no index is used.
2014-07-25 22:31:30 +02:00
Noah Santorello
97c8c820e6
Made migration CLI tasks output absolute paths
2014-07-21 19:48:31 -04:00
Noah Santorello
26e4135f7f
Fixing path issues in migration and seed functionality
2014-07-21 19:27:26 -04:00
Noah Santorello
fda570eb1e
Fixing seed tests and jshint
2014-07-21 18:49:20 -04:00
Noah Santorello
983931bcbd
Merge remote-tracking branch 'upstream/master'
2014-07-21 18:08:44 -04:00
Noah Santorello
79faa5177c
Finished seeder integration for various dialects
2014-07-21 18:06:58 -04:00
Tim Griesser
7c1b8eac70
Fixing default tableName for migrations.
2014-07-21 15:13:30 -04:00
bhirt-gf
9321abd6c0
fix for using a pgConnectionString, the parsed connection string settings will be set in the connectionSettings of the knex object. Without this, some features like columnInfo() will fail when connecting to a database with a pgConnectionString
2014-07-21 12:00:12 -06:00
Noah Santorello
ef159b85a8
Path.join error
2014-07-21 09:57:48 -04:00
Noah Santorello
65cb342e09
CLI outputs relative path of files, not just filename
2014-07-21 09:51:04 -04:00
Noah Santorello
f8d01e9901
Initial commit of seed functionality
2014-07-21 09:42:56 -04:00
Calvin Metcalf
d7e54e0741
fix transactions
2014-07-18 12:24:09 -04:00
Pelle Wessman
bdc3b43655
Added a function helper collection
...
To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
2014-07-18 12:41:23 +02:00
Sohum Banerjea
45748bb257
bugfix: index disruption
2014-07-18 10:22:36 +10:00
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