ks-transaction added.
This commit is contained in:
+3
-1
@@ -108,7 +108,9 @@
|
||||
(define-syntax ks-transaction
|
||||
(syntax-rules ()
|
||||
((_ ks b1 ...)
|
||||
(begin
|
||||
(with-handlers ([exn? (λ (e)
|
||||
(query-exec (keystore-dbh ks) "ROLLBACK")
|
||||
(raise e))])
|
||||
(query-exec (keystore-dbh ks) "BEGIN")
|
||||
(let ((r (begin b1 ...)))
|
||||
(query-exec (keystore-dbh ks) "COMMIT")
|
||||
|
||||
Reference in New Issue
Block a user