Commit Graph

121 Commits

Author SHA1 Message Date
brianc
5496f3199e remove net.Stream references from client 2011-02-04 20:05:02 -06:00
brianc
0732ee215f readability refactoring 2011-02-04 20:03:41 -06:00
brianc
84e452e221 style cleanup 2011-02-04 19:45:30 -06:00
brianc
a5fce8eb7b query events for prepared statements are handled by client 2011-02-04 19:30:30 -06:00
brianc
99093b34c8 query events handled by client in simple query scenario 2011-02-04 19:15:57 -06:00
brianc
daa370a610 move some query listener delegation to client 2011-02-04 19:03:23 -06:00
brianc
cb647935bb slight readability refactor 2011-02-04 18:51:23 -06:00
brianc
51d922f3e1 a connection string without all settings no longer causes client
constructor to throw error
2010-12-28 10:44:33 -06:00
Brian Carlson
5a87972983 remove active query reference when client drains 2010-12-10 16:56:10 -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
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
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
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
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
405fbbec12 nulls supported in all currently supported type coercions 2010-10-30 21:10:26 -05: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
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
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
brianc
86d5296fb0 parsing floats 2010-10-27 00:15:58 -05:00
brianc
368724d4f4 integer datatype coercion in result set 2010-10-26 23:57:36 -05:00
brianc
b5d02a995a basic test for client error handling 2010-10-26 08:51:12 -05:00
brianc
c3f69a8be7 add end to client 2010-10-25 17:24:17 -05:00
brianc
80ee829ba0 testing out the query interface 2010-10-24 23:32:18 -05:00
brianc
59aed65b78 tests for simple query queue scenarios 2010-10-24 22:52:12 -05:00
brianc
d927e7e3f5 changed Connection#startupMessage to Connection#startup 2010-10-24 21:28:10 -05:00
brianc
e89aa9c84c changed Connection#passwordMessage to Connection#password 2010-10-24 21:26:18 -05:00
brianc
3edb02aa67 big refactor, all tests passing 2010-10-23 20:26:24 -05:00
brianc
89ca74c6d1 removed connection methods from client 2010-10-23 19:30:15 -05:00
brianc
ed909cbc66 connection now handles ending 2010-10-23 19:28:57 -05:00
brianc
9749ec4fdc md5 password authentication using connect 2010-10-23 19:21:01 -05:00
brianc
3662e6f4af clear password using connection 2010-10-23 19:02:13 -05:00
brianc
057df36e2a simple bound queries 2010-10-23 16:21:11 -05:00
brianc
5650b02993 initial work on binding 2010-10-23 15:07:26 -05:00
brianc
95ec1b403c parsing of prepared queries with no parameters 2010-10-23 14:50:28 -05:00
brianc
380abbf6a6 start working on parsing 2010-10-23 14:22:47 -05:00
brianc
bfec84bc15 removed reamining references to query 2010-10-23 14:02:44 -05:00
brianc
37bbb21bce collapsed query into client 2010-10-23 13:58:15 -05:00
brianc
cb7717b5b1 updated integration tests 2010-10-23 13:56:38 -05:00
brianc
bdb4d28038 fixed protocol version 2010-10-23 13:28:14 -05:00
brianc
836240dcd8 code cleanup 2010-10-23 12:46:27 -05:00
brianc
d45c905978 added EventEmitter.once compatibility 2010-10-23 12:45:37 -05:00
brianc
65dbfa43ec renamed Client#disconnect to Client#end 2010-10-22 18:28:10 -05:00
brianc
5b1f8aff3b supporting md5 password authentication 2010-10-22 18:16:40 -05:00
brianc
c41c304c7e code cleanup 2010-10-20 00:36:37 -05:00
brianc
21879edc24 refactoring 2010-10-20 00:34:16 -05:00
brianc
c923ae03a5 don't require parser 2010-10-20 00:21:43 -05:00
brianc
7d627f8d15 combined parser and client 2010-10-20 00:21:13 -05:00
brianc
3fe6661819 refactor sending simple messages 2010-10-19 23:49:55 -05:00
brianc
406e8a56a9 got basic password authentication working 2010-10-19 23:29:23 -05:00
brianc
967ec0f6bb parsing ints 2010-10-18 22:12:26 -05:00
brianc
39897a16c7 make a single instance of Parser per client 2010-10-13 22:35:14 -05:00
brianc
1786c73565 downcased first character of message names 2010-10-12 22:01:13 -05:00
brianc
5152cfea14 send correct termination code 2010-10-10 23:05:21 -05:00
brianc
a7c5a81829 adding 'sys' dependency to client.js 2010-10-10 23:02:11 -05:00
brianc
08bdd4ccdc query no longer holds circular reference to creator client 2010-10-10 22:44:58 -05:00
brianc
6d4469e391 code cleanup 2010-10-10 22:44:13 -05:00
brianc
5c6f95b427 moved items to their own file 2010-10-10 22:37:30 -05:00