CL-DBI-Connection-Pool - connection pool for CL-DBI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
t
.gitignore
.travis.yml
README.markdown
cl-dbi-connection-pool.asd
dbi-cp-test.asd
dbi-cp.asd

README.markdown

CL-DBI-Connection-Pool - connection pool for CL-DBI

Build Status

This library provides connection pool for CL-DBI.

Usage

Create connection pool

(make-dbi-connection-pool :mysql :database-name "dbi-cp" :username "root" :password "password")

Get connection

(setf conn (get-connection))

Prepare, Execute, Fetch

Those functions are based on CL-DBI.

(let* ((query (prepare conn "SELECT * FROM person WHERE id = ?"))
       (result (execute query 1)))
  (fetch result))

Commit, Rollback

(commit conn)

(rollback conn)

Return connection

(disconnect conn)

Installation

This library will be available on Quicklisp when ready for use.

Author

Copyright

Copyright (c) 2017 tamura shingo (tamura.shingo@gmail.com)

License

Licensed under the LLGPL License.