Liking cljdoc? Tell your friends :D

suricatta

Travis Badge

High level sql toolkit for clojure (backed by jooq library)

Latest Version

Clojars Project

Quick Start

Put suricatta on your dependency list:

[funcool/suricatta "1.3.1"]
[com.h2database/h2 "1.4.191"] ;; For this example only

Define a valid dbspec hashmap:

(def dbspec {:subprotocol "h2"
             :subname "mem:"})

Connect to the database and execute a query:

(require '[suricatta.core :as sc])

(with-open [ctx (sc/context dbspec)]
  (sc/fetch ctx "select x from system_range(1, 2);"))
;; => [{:x 1} {:x 2}]

Documentation

http://funcool.github.io/suricatta/latest/

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close