Liking cljdoc? Tell your friends :D

Sandbox set-up

In dataset/sandbox.clj, you will find a namespace to quickly get up and running. The set-up relies on three steps:

Loading a dataset

db.fixtures is a namespace providing support for fixtures. This namespace is only present under the dev leiningen profile:

(load-fixtures :small)

Creating a schema

The is ample documentation in quickstart around creating schemas. The one provided in sandbox is a minimal one:

  (s/def :account/state keyword?)

  (def env
    {:jdbc   jdbc-config
     :schema (make-schema
              (entity :account
                      (field :id)
                      (field :name)
                      (field :state)))})

Running queries

At this point, you are ready to go:

  (q/execute env :account [:account/name :account/state])

Can you improve this documentation?Edit on GitHub

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

× close