301 Commits

Author SHA1 Message Date
Tim Griesser
44b96f2c53 adding tests for pool relating to #90 2013-10-14 07:36:12 -04:00
Tim Griesser
2ec64f6dd6 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  added tests for table.charset and table.collate
  added charset() and collate() for mysql schema builder
2013-10-14 07:22:45 -04:00
Tim Griesser
1ec57c12b7 fix for #91, keep the correct query type on clones 2013-10-14 07:20:12 -04:00
Hung Tran
c884b6bbe7 added tests for table.charset and table.collate 2013-10-11 13:19:24 -05:00
Tim Griesser
ef0b01fc36 making composite key test more logical 2013-10-10 11:48:58 -04:00
Tim Griesser
fcec4f815a composite key example test 2013-10-10 11:21:32 -04:00
Tim Griesser
42b418aae9 formatting error message again, adding sql & bindings on error object 2013-10-07 08:23:22 -04:00
Tim Griesser
3ebc4cbb63 hasColumn docs, mysql hasColumn fix, fixes #87 2013-10-07 08:22:40 -04:00
Tim Griesser
ed0a27468d adding when/monitor/console for unit tests 2013-10-03 14:50:04 -04:00
Tim Griesser
f1989e513d editing error handling a bit, adding test, updated docs 2013-09-25 14:46:02 -04:00
Tim Griesser
2d1c0f019d fix for internal mutation of builder on multiple toSql calls 2013-09-24 08:14:02 -04:00
Tim Griesser
c56ea53c8c fix for #82, hasTable returning true 2013-09-23 23:07:38 -04:00
Tim Griesser
96a7a9e747 fix for #78, underscore not included in various grammar files 2013-09-18 11:56:46 -04:00
Tim Griesser
ee1efa50e3 Attaching grammars directly onto client instances, fixes #74
Allows passing in an intitialized client instance to the constructor
2013-09-17 06:54:26 -04:00
Tim Griesser
1d21980eef prep for 0.4.1 2013-09-16 10:49:30 -04:00
Tim Griesser
0ae10c3236 fixing query ordering in tests 2013-09-13 18:48:28 -04:00
Tim Griesser
0e7129aa8f trying to get mocha-as-promised working on node 0.6 2013-09-13 18:41:36 -04:00
Tim Griesser
6b89cedf92 minor fixes for the unit tests 2013-09-13 18:11:50 -04:00
Tim Griesser
b8dd337334 0.4.0 release 2013-09-13 17:46:03 -04:00
Tim Griesser
5ca81a5cb5 afterCreate and beforeDestroy continue to use callbacks 2013-09-13 16:50:51 -04:00
Tim Griesser
76c2dbd75e working on the docs, more internal cleanup 2013-09-13 15:36:49 -04:00
Tim Griesser
b1787cbb10 adding a toString method that properly escapes queries, fixes #59 2013-09-13 12:59:12 -04:00
Tim Griesser
71b47e925b pulling in the option feature from #64, rename to options 2013-09-13 11:40:51 -04:00
Tim Griesser
80c03073c7 Added a flags property on the builder...
Flags property for tracking distinct, limit, offset, etc.
Added a 'type' on the JoinClause object, other minor changes
2013-09-13 10:51:12 -04:00
Tim Griesser
6cfa41a69f minor cleanup 2013-09-13 10:24:39 -04:00
Tim Griesser
1a47485d33 integration tests are workinggit st 2013-09-12 13:30:47 -04:00
Tim Griesser
847f926c38 most of the functionality is now restored 2013-09-12 02:09:29 -04:00
Tim Griesser
dc312f322b fix on the toString for clauses, unit test cleanup 2013-09-12 01:13:07 -04:00
Tim Griesser
48563dfd31 sqlite3 mostly working except for the schema things 2013-09-12 01:00:44 -04:00
Tim Griesser
522c8fff63 finally got the sqlite3 stuff working, now to just hook up the tests 2013-09-12 00:26:33 -04:00
Tim Griesser
634f4751a1 mysql and pg are mostly working, now onto sqlite3 2013-09-11 23:36:55 -04:00
Tim Griesser
01c4a83d35 lots of library restructure / unit test work 2013-09-08 15:57:32 -04:00
Tim Griesser
faa2497ef1 wip unit tests & refactoring 2013-09-05 16:36:49 -04:00
Tim Griesser
9a5e3947d0 adding bigInteger, bigIncrements, unsigned on autoincrement pk 2013-09-04 20:02:28 -04:00
Tim Griesser
f9b7d0a42f adding Schema.hasColumn 2013-09-04 19:13:02 -04:00
Tim Griesser
0c6dedc58b api change, nullable by default, add notNull for not null columns 2013-09-04 18:34:59 -04:00
Tim Griesser
f3a59a867b a bit hacked together on the sqlite3, but renameColumn for all db's 2013-09-04 17:32:32 -04:00
Tim Griesser
0fba8b1217 merging with master 2013-08-23 11:12:27 -04:00
Tim Griesser
5db8c8aac2 fix #45, sqlite delete doesn't show affected row count 2013-08-22 21:34:31 -04:00
Tim Griesser
f056257a60 fix for #44, default values syntax, other cleanup 2013-08-22 16:46:13 -04:00
Tim Griesser
78f8412037 Cleanup & test case for #42 2013-08-20 00:47:39 -04:00
Tim Griesser
a14ebd23f7 fixing #38 shouldn't mutate insert array 2013-08-13 17:45:53 -04:00
Tim Griesser
4df8d8b4c5 working on migration piece 2013-07-30 14:41:25 -04:00
Tim Griesser
f79d4234f6 add 'returning' method, to specify return value, fixes #18 2013-07-17 13:52:58 -04:00
Tim Griesser
b43592bd06 fixing test output for travis 2013-07-17 10:39:09 -04:00
Tim Griesser
f9ae04a06b adding support for the uuid data type 2013-07-17 10:26:24 -04:00
Tim Griesser
acfd8ecce5 merging PR #20 from vjpr:json 2013-07-17 09:52:19 -04:00
Tim Griesser
bf5af801c9 support for enum in postgresql, fixes #21 2013-07-17 08:38:33 -04:00
Tim Griesser
55f81b3292 hasTable now returns a boolean rather than a failed promise, fixes #23 2013-07-17 07:26:05 -04:00
Tim Griesser
21c0ad5d33 finishing changes for foreign key support, fixes #24 2013-07-17 07:10:19 -04:00