Commit Graph

150 Commits

Author SHA1 Message Date
Brian Carlson
55f84924f2 query errors passed to a query callback function are considered handled 2010-12-16 23:50:36 -06:00
Brian Carlson
e6e643ac6d commented out logging statements 2010-12-14 21:21:28 -06:00
Brian Carlson
6ef45e84fe removed test exception 2010-12-13 23:28:30 -06:00
Brian Carlson
1c8c8c971e remove row.js file (not used as of now) 2010-12-13 17:24:23 -06:00
Brian Carlson
0e03b875af remove references to unused 'row' object 2010-12-13 17:24:05 -06:00
Brian Carlson
b3e56afea2 initial working connection pool implementation & tests 2010-12-13 17:21:40 -06:00
Brian Carlson
0d7936f7ae removing connection pooling until it is finished and tested 2010-12-13 10:35:54 -06:00
Darwin
0249d60604 fixed bug related to parseInt bug, leading 0 is interpreated in a fucked upp way 2010-12-11 12:03:29 +01:00
Brian Carlson
ab13d0c1eb initial crack at connection pooling -- still dirty 2010-12-10 17:32:34 -06:00
Brian Carlson
5a87972983 remove active query reference when client drains 2010-12-10 16:56:10 -06:00
Brian Carlson
169c6dc3ce Pool object for use in connection pooling 2010-12-09 18:10:42 -06:00
Brian Carlson
f0291d30d7 nested query and streamlined api working 2010-12-02 17:47:54 -06:00
Brian Carlson
8d7ff353af fix to allow executing queries within the callback function of another query.
there was a timing issue with emiting the drain event
2010-11-21 23:30:10 -06:00
Brian Carlson
9c33571853 removed some unused variables in client 2010-11-20 14:23:48 -06:00
Brian Carlson
de5438e6f5 started working on specifying defaults 2010-11-20 14:09:18 -06:00
Brian Carlson
0bde640bab overloaded "simple" query api to provide callback enabled prepared statement 2010-11-15 00:42:38 -06:00
Brian Carlson
91aac6d350 initial callback api integration underway 2010-11-15 00:10:21 -06:00
Brian Carlson
f8096cbe55 initial work on streamlined client interface 2010-11-14 23:04:41 -06:00
Brian Carlson
ebf5c5c4ed support for limiting number of rows returned at a time from a cursor 2010-11-14 17:53:49 -06:00
Brian Carlson
e61ec5dfed unit test for portal suspended 2010-11-14 17:44:36 -06:00
Brian Carlson
6585f85d03 query object now emits query related errors, client object no longer
emits query related errors
2010-11-14 16:50:38 -06:00
brianc
d77fd0ee65 ability to init connection with url instead of config object 2010-11-10 21:45:39 -06:00
brianc
95ee9e645c query now returns named records in rows 2010-11-04 00:21:29 -05:00
brianc
2efe451ee6 added Row object instead of returning raw dataRow object w/ coerced types 2010-11-03 23:06:07 -05:00
brianc
8ec671a67c added test & fix for missing 'sys' require in query.js 2010-11-03 16:47:26 -05:00
brianc
d2e3dfb647 split query out from client file and did minor refactorings 2010-11-03 00:27:11 -05:00
brianc
7ce1ddeab5 small refactorings 2010-11-02 23:46:13 -05:00
brianc
1b9ccf97e9 reduced number of flush messages during prepared statement, 2x performance 2010-11-02 03:29:11 -05:00
brianc
381598d3c0 date type coercion works in both directions 2010-11-02 00:50:42 -05:00
brianc
2c362250b3 use regex for date part parse 2010-11-02 00:46:29 -05:00
brianc
6841178ca2 modified tests to correctly check for adjusted utc values 2010-11-02 00:23:39 -05:00
brianc
0c777fafec fix for strang \0 buffer encoding issue in node v0.3.0 2010-11-01 22:11:40 -04:00
brianc
07010389ff basic (ugly) date type coercion tests 2010-11-01 00:27:06 -05:00
brianc
074779b5ff initial work on dates 2010-11-01 00:27:05 -05:00
brianc
0f926ca62e refactored to increase performance 2010-10-31 18:36:35 -05:00
brianc
0d2d6b5107 Moved buffer list to test directory and replaced w/ slightly cleaner
"writer" for use in the library code.  BufferList was always supposed
to be a test helper and the api is trash
2010-10-31 18:21:37 -05:00
brianc
2454d6b355 a bit of code cleanup 2010-10-31 17:58:32 -05:00
brianc
6764af30eb sped up parser ~70% (http://jsperf.com/case-v-method) 2010-10-31 17:46:33 -05:00
brianc
75da13a4b9 removed id from connection messages (simplify API) 2010-10-31 17:30:35 -05:00
brianc
405fbbec12 nulls supported in all currently supported type coercions 2010-10-30 21:10:26 -05:00
Paul Collier
f5528fa7ed propagate connection stream errors 2010-10-30 18:23:54 -07:00
bmc
cafded964e support for 'emptyQuery' command 2010-10-29 21:33:53 -04:00
bmc
577f48f824 added 'drain' event to client which fires after all pending queries
are done
2010-10-29 20:48:31 -04:00
brianc
d38a7f5ed7 added tests to support noData & extra query scenarios but currently
failing...ignoring for now
2010-10-29 00:46:08 -05:00
brianc
f63659cbc5 parsing noData message 2010-10-29 00:02:08 -05:00
brianc
da8026df9d prepared statements moved forward a good deal 2010-10-28 19:09:40 -05:00
brianc
104727fd87 simple prepared statements working! 2010-10-28 00:50:45 -05:00
brianc
c848a5ad92 added support for describe command 2010-10-28 00:27:08 -05:00
brianc
adc8bfa7bf start chopping up client to support prepared statements 2010-10-27 16:58:58 -05:00
brianc
f04ad8e64c boolean coercion 2010-10-27 00:31:34 -05:00