Skip to content

dkf/clj-jdbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-jdbi

very basic, very alpha clojure wrapper for jdbi (http://jdbi.org/). not nearly ready for real use yet.

Usage

user> (use 'clj-jdbi.core)
nil
user> (def local-db (create-dbi "jdbc:mysql://localhost/test" "username" "password"))
#'user/local-db
user> (with-dbi local-db
	(with-handle
	  (select "select * from foo limit 2")))
({:name "foo", :id 1} {:name "bar", :id 2})

Todo

  • JDBI has a ton of features, clj-jdbi exposes almost none of them
  • document the createQuery wrapper and the batch wrapper

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published