Commit Graph

20 Commits

Author SHA1 Message Date
Lourens Naude
35d2545c17 Selective enable || disable GC for result retrieval with Mysql#disable_gc = true|false 2008-10-08 22:11:14 +01:00
Lourens Naude
8e6f300f9d Introduce Mysql#reconnected? 2008-10-08 17:09:47 +01:00
Lourens Naude
f57c2a6576 Let #c_async_query support a block syntax that yields the result; ensure async in progress is negated by #get_result 2008-10-08 05:17:01 +01:00
Lourens Naude
85141abf09 Validate async queries 2008-10-02 01:56:10 +01:00
Lourens Naude
3c5dd38037 Extract thread scheduler 2008-09-10 01:26:01 +01:00
Lourens Naude
6884d454bc Use TCP_NODELAY if supported; Remove file descriptor ops from the tight loop; Cleanup timeout assignment; Split the threaded test suite in native and c to avoid a large number of active Threads affecting results.Add experimental Mysql#socket_type which typically returns 'socket (x)', but may be helpful for debugging purposes. 2008-09-10 00:33:18 +01:00
Lourens Naude
f077108a69 Introduce configureable query overheads and contexts in the test wrapper in preparation for timeout tests. 2008-09-08 17:45:00 +01:00
Lourens Naude
ea2965270c Decouple native Ruby Mysql#async_query from the C extension as per Roger's suggestion.Remove no-op c_mysql_query flag for evented tests. 2008-09-08 17:27:11 +01:00
Lourens Naude
55411cd9d4 Introduce Mysql#blocking?; Set the file drescriptor for all new connections to non blocking; Add tests to the existing evented and threaded runs. ( verified 1.8 && 1.9 ) 2008-09-08 01:48:47 +01:00
Lourens Naude
26202b3ddb Assume blank password 2008-09-06 17:21:36 +01:00
Lourens Naude
70c58ce67a Allow tests to run with either the native Ruby or C based Mysql#async_query 2008-09-06 17:17:06 +01:00
Lourens Naude
91d9096b14 Extract base klasses for cleaner implementation testing; DRY up existing threaded && evented tests 2008-09-06 00:54:48 +01:00
Lourens Naude
58d416e929 Experimental build && test tasks 2008-09-05 18:23:47 +01:00
Roger Pack
a610530d36 demo file for the Result#all_hashes method 2008-09-02 11:19:04 -06:00
Roger Pack
b9e2abaa70 add a free to the use_result example test 2008-08-29 12:26:59 -06:00
Roger Pack
7a0ecc3497 add in a test showing how to use async with mysql.use_result 2008-08-29 12:24:37 -06:00
Aman Gupta
4fb06ca803 clean up threaded test; add simple sequel test 2008-08-27 16:11:19 -07:00
Aman Gupta
aa35d6430f clean up async_query/threaded test 2008-08-27 14:23:01 -07:00
oldmoe
da40f34362 threaded access suppor (working this time) 2008-08-27 15:09:39 +03:00
oldmoe
d7e47a3f2d extracted from neverblock-mysql 2008-08-27 02:05:20 +03:00