Ryan Culpepper
681558328e
add last inserted row, # changes to simple-result info
...
The info keys are 'insert-id, 'affected-rows, as for mysql.
2013-01-07 19:52:51 -05:00
Ryan Culpepper
ce567c861e
use define-logger
2012-12-05 12:19:16 -05:00
Ryan Culpepper
30397acc37
use exn:fail:sql for sqlite errors too
2012-12-01 01:33:56 -05:00
Ryan Culpepper
05e7e61d85
added #:option to start-transaction, call-with-transaction
2012-12-01 01:33:56 -05:00
Ryan Culpepper
fa21ce397c
add diagnostics for SQLITE_BUSY
2012-11-30 14:42:18 -05:00
Ryan Culpepper
46fb05e6ee
ignore reset result, reset on error
...
Reset result is from last step; looking at it was probably causing
spurious failures and busy-timeouts.
Transaction completion relies on statements being reset reliably.
2012-11-30 14:40:12 -05:00
Ryan Culpepper
c64c325a55
remove redundant statement resets
2012-11-28 17:09:25 -05:00
Ryan Culpepper
438f906fb9
reset statement after use
2012-11-28 15:06:06 -05:00
Ryan Culpepper
203a7a660c
db: fix another sqlite3 finalization bug
2012-10-30 12:33:02 -04:00
Ryan Culpepper
8226899df3
db: fix finalization bug
2012-10-22 13:27:59 -04:00
Ryan Culpepper
7c395e9c7c
db: updated to new error convention (mostly)
2012-08-25 19:02:18 -04: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
dba35c3116
db: added nested transactions
2012-01-08 23:25:53 -07:00
Ryan Culpepper
6742c308d9
db: fix sqlite3 memory corruption bug
2011-12-16 19:18:46 -07:00
Ryan Culpepper
15e3640191
db: fix #:group contract, fix sqlite headers
2011-09-06 12:41:03 -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
Ryan Culpepper
397702808a
db: fixed virtual-statement
...
Eliminated interface test (shallow) in favor of method test
(correct, recursive). Also made vstmts work with virtual-connections.
2011-08-30 12:04:24 -06:00
Ryan Culpepper
a91e6f6452
db: "recordset" -> "rows-result", "rows"
2011-08-27 16:31:22 -06:00
Ryan Culpepper
82896bfce2
db: added list-tables, table-exists? (except for ODBC, so far)
2011-08-25 12:56:42 -06:00
Ryan Culpepper
50f0a32f9e
added db library
2011-08-25 12:56:42 -06:00