Ryan Culpepper
00fd18bc62
db: various fixes and additions
...
- fix connection-pool for nested tx, fix race condition
- ensure connected? always nonblocking
- added and reorganized some doc sections
- added grouping, contracts to in-query
- added rows->dict
2012-05-09 09:17:52 -06:00
Ryan Culpepper
aa0d8aaa33
fix bug in db docs intro
...
closes PR 12743
2012-05-09 09:17:52 -06:00
Eli Barzilay
17090fca4f
A bunch of fprintf' ->
eprintf' conversions (and a few related things).
2012-05-06 12:06:00 -04:00
Ryan Culpepper
9f492c10a7
db: fix mysql large blobs, other changes
...
MySQL:
- support multi-packet data rows
- fixed very old length-coding bug (24 vs 32 bit length)
- support large params via long-data packets
- 'any' pseudo-type for parameters
- distinguish 'blob'/'text', 'var-string'/'var-binary'
- read 'text' results as string, not bytes
SQLite3:
- enabled sql types tests
2012-04-14 19:47:32 -06:00
Rodolfo Henrique Carvalho
b87c2a18a4
Fix typo.
2012-04-04 02:52:51 -04:00
Ryan Culpepper
c10bf245c5
db: fix mysql close-on-exec slowdown (TCP issue)
2012-03-18 03:31:17 -06:00
Ryan Culpepper
e41ff8609c
db: trim todo file
2012-03-13 19:50:08 -06:00
Ryan Culpepper
1b7368f80c
db: fix memory leaks
...
- sqlite3: table prevented pst gc unless close-on-exec
- statement cache wrongly disabled close-on-exec
(not a leak, just gc'd very slowly)
- limit statement cache size
2012-03-13 19:50:08 -06:00
Eli Barzilay
c007c345f9
A bunch of more typos like the ones in David's commit.
2012-02-21 14:21:43 -05:00
Ryan Culpepper
766790b9e4
db: clean up disconnect
2012-02-08 22:32:51 -07:00
Ryan Culpepper
f142a1c5f2
db: clean up communication, locking
...
Disconnect on break exn within lock; other break-safety fixes.
2012-02-08 22:32:51 -07:00
Ryan Culpepper
f5711c6cc3
db: added prepared statement cache
2012-02-08 22:32:51 -07:00
Ryan Culpepper
6fe7e65ff0
db: clean up common tx code
2012-02-08 22:32:51 -07:00
Ryan Culpepper
654ccb277f
db: added cursors
2012-02-08 22:32:51 -07:00
Ryan Culpepper
618173c97e
db: finalize close-on-exec psts within lock
2012-02-08 22:32:51 -07:00
Ryan Culpepper
4c817d0f7f
db: clean up and reogranize common impl code
2012-02-08 22:32:50 -07:00
Ryan Culpepper
0b3691691a
db: fix sqlite3 #:use-place for raco exe
2012-01-24 15:28:32 -07:00
Ryan Culpepper
622a947bc4
db: added #:use-sources for db/base exports
2012-01-23 16:06:14 -07:00
Ryan Culpepper
dba35c3116
db: added nested transactions
2012-01-08 23:25:53 -07:00
Ryan Culpepper
59beeb2e14
minor doc fixes
2011-12-18 13:57:50 -07:00
Ryan Culpepper
933965b2c2
moved unstable/prop-contract into racket/contract/base
2011-12-18 13:57:50 -07:00
Ryan Culpepper
6742c308d9
db: fix sqlite3 memory corruption bug
2011-12-16 19:18:46 -07:00
Ryan Culpepper
d312744aae
db: make debugging easier
2011-12-13 23:51:31 -07:00
Ryan Culpepper
b355abfdb3
db: allow mysql-connect without db
2011-12-13 22:18:13 -07:00
Ryan Culpepper
fd74709e1c
db: implement mysql auth plugin support, old password support
...
related to PR 12415
2011-12-13 22:17:51 -07:00
Ryan Culpepper
0dcafac0c9
db: improved message debugging for mysql
2011-12-07 13:23:33 -07:00
Ryan Culpepper
7ebd15c4b0
db: export and document exn:fail:sql
2011-11-30 09:24:24 -07:00
Ryan Culpepper
f38d959b3a
db: fix transaction contract bugs, added transaction tests
...
closes PR 12364
2011-11-13 15:11:12 -07:00
Ryan Culpepper
b4e856cc3c
db: fixed space leak in statement finalizer thread
...
This "fixes" the segfault in the test program, but it seems
like there must be another underlying problem.
2011-11-13 15:11:12 -07:00
Ryan Culpepper
1dade8ee1d
db: added support for postgresql arrays
2011-10-30 18:51:16 -06:00
Ryan Culpepper
f704d1620d
db: remove superfluous pretty-print setup
2011-10-16 05:41:58 -06:00
Ryan Culpepper
8f2fe7a5aa
db: updated note about sqlite3.dll
...
merge to 5.2
2011-10-16 05:41:53 -06:00
Ryan Culpepper
00c6f91e7c
db: fix use of lazy-require
2011-10-07 19:40:48 -06:00
Ryan Culpepper
c7f86d276c
removed useless requires
2011-09-27 19:28:44 -06:00
Ryan Culpepper
717bc17aaf
db: adjust lazy requires for cross-place mode
2011-09-27 19:28:44 -06:00
Ryan Culpepper
52a738140d
db: minimize dependencies
2011-09-27 19:28:44 -06:00
Ryan Culpepper
36149b92a7
db: added ssl support for mysql connections
2011-09-27 19:28:44 -06:00
Ryan Culpepper
40439aa4ef
removed useless requires
2011-09-20 14:49:49 -06:00
Ryan Culpepper
15e3640191
db: fix #:group contract, fix sqlite headers
2011-09-06 12:41:03 -06:00
Ryan Culpepper
e6433084f3
added unstable/lazy-require
...
Also fixed lazy-require to capture and use correct namespace.
2011-09-06 12:41:03 -06:00
Ryan Culpepper
5db417fcf2
db: add support for odbc on macosx (needs testing)
2011-09-06 12:41:03 -06:00
Ryan Culpepper
f4d712ac71
db: made sql data serializable
2011-09-06 12:41:03 -06:00
Eli Barzilay
8c9404642b
Remove uses of `scheme' in db docs.
2011-09-05 00:34:16 -04:00
Ryan Culpepper
a5bda8e0cd
db: moved private contracts to db/base, removed useless requires
2011-08-31 05:40:24 -06:00
Ryan Culpepper
8611435269
db: improved locking
...
Tests suggest new locking is faster, but primary benefit is
detecting when thread holding lock is killed.
2011-08-31 05:40:24 -06:00
Ryan Culpepper
19b1ff101c
db: fixed kill-safe-connection, improved tests
2011-08-31 05:40:24 -06:00
Ryan Culpepper
96663d4fa4
db: added #:use-place arg for ffi-based connections
...
SQLite and ODBC connections can use places to avoid blocking all
Racket threads.
2011-08-31 05:40:24 -06:00
Ryan Culpepper
281df3221e
db: tried async execution with odbc... didn't work
...
Added note in TODO, my guess why not.
Fixed odbc ffi bindings, added a few more status checks.
2011-08-30 12:04:25 -06:00
Ryan Culpepper
f339060e55
db: added note on performance, edited note on isolation
2011-08-30 12:04:24 -06:00
Ryan Culpepper
418985d4c4
db: fixed issues with statement finalization (don't use weak hash)
...
In some cases, statements were disappearing from statement-table
without being finalized; this makes disconnect fail.
(I was only able to produce the problem when the db lib was
instantiated in a sub custodian that is later shutdown....
like the way the rackunit gui runs the test suite.)
2011-08-30 12:04:24 -06:00