Skip to content

Commit

Permalink
added `with-connection' macro to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Nov 29, 2012
1 parent 19abb54 commit 8c29978
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.markdown
Expand Up @@ -16,6 +16,14 @@
;; process "row".
))

;; Using dbi:with-connection macro.
(dbi:with-connection (conn :sqlite3 :database-name "/home/fukamachi/test.db")
(let* ((query (dbi:prepare conn "SELECT * FROM People"))
(result (dbi:execute query)))
(loop for row = (dbi:fetch result)
while row
do (format t "~A~%" row))))

## Warning

This library is still under development and considered ALPHA quality. APIs are likely to change.
Expand Down Expand Up @@ -53,6 +61,7 @@ This library will be available on Quicklisp when ready for use.
* begin-transaction [conn]
* commit [conn]
* rollback [conn]
* with-connection [connection-variable-name &body body]

### Driver-Level API

Expand Down

0 comments on commit 8c29978

Please sign in to comment.