51 Commits

Author SHA1 Message Date
Tim Griesser
06c38bcc2d Allow for returning in update queries, #132 2013-12-10 14:55:05 -05:00
Tim Griesser
10e3d398f4 Fix #132, allow multiple returning formats in postgres 2013-12-10 13:33:49 -05:00
Tim Griesser
b65bf4f231 removing umd, Promise.method on query 2013-12-02 23:58:41 -05:00
Tim Griesser
5354f32b4f Merge branch 'feature/postgres-bigint' of github.com:bryanaka/knex into bryanaka-feature/postgres-bigint
* 'feature/postgres-bigint' of github.com:bryanaka/knex:
  added bigint type to postgresql
2013-11-25 11:24:30 -05:00
Bryan Robles
f61eea9523 added bigint type to postgresql 2013-11-25 01:21:12 -08:00
Tim Griesser
e3cd5df9af docs & prep for 0.5.0 2013-11-25 02:06:42 -05:00
Tim Griesser
667a20b66e switching out underscore for lodash 2013-11-25 02:00:12 -05:00
Tim Griesser
17d09f2655 Merge branch 'bluebird'
* bluebird:
  cleanup on the .then interface
  swapping in bluebird, some promise cleanup
2013-11-02 09:24:17 -04:00
Tim Griesser
5a8f4df9cf fix incorrect values passed to typeDecimal in postgres 2013-10-29 13:54:52 -04:00
Tim Griesser
059ba8ad5f fix incorrect values passed to typeFloat in mysql 2013-10-29 13:53:47 -04:00
Tim Griesser
b20c6c3f8e swapping in bluebird, some promise cleanup 2013-10-27 22:34:58 -04:00
Tim Griesser
b70e787d25 fix for #84, adding forUpdate and forShare on transactions 2013-10-14 08:02:26 -04:00
Hung Tran
94c4c0426f added charset() and collate() for mysql schema builder 2013-10-10 10:53:41 -05: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
edd41aa249 adding original error message back on the output error json 2013-10-03 14:51:19 -04:00
Alexandru Chiculita
9fe147cf8e do not push undefined connections back into the pool 2013-10-01 23:07:17 -07:00
Tim Griesser
f1989e513d editing error handling a bit, adding test, updated docs 2013-09-25 14:46:02 -04:00
Tim Griesser
7225e45b1b literate commenting 2013-09-25 14:31:53 -04:00
Tim Griesser
6acce4499f error changes as noted in #39 2013-09-25 13:53:43 -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
b56d03104a fixing pool config order 2013-09-22 19:28:59 -04:00
Tim Griesser
15096468ff fix for debug method not debugging query, 0.4.4 prep 2013-09-22 17:42:53 -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
11bb681baa lots of docs & updated comments 2013-09-17 07:15:18 -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
56d78d7172 merging in 0.4.0 2013-09-13 17:20:40 -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
9cf602de1b Graduating from docco... onto groc 2013-09-13 13:52:38 -04:00
Tim Griesser
3d7c52e28c throw if we attempt to run the query without a connection 2013-09-13 13:27:00 -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
Hung Tran
0d1593373f added option() to resolve overlapping column names on joins 2013-09-12 13:54:23 -05:00
Tim Griesser
1a47485d33 integration tests are workinggit st 2013-09-12 13:30:47 -04:00
studds
f05e556c1b Drain connection pool on SIGINT as well as exit 2013-09-12 13:56:02 +02:00
Tim Griesser
847f926c38 most of the functionality is now restored 2013-09-12 02:09:29 -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
b18ef3d371 more refactoring, prep for non-server interfaces 2013-09-03 23:22:02 -04:00