In dataset/sandbox.clj, you will find a namespace to quickly get
up and running. The set-up relies on three steps:
db.fixtures is a namespace providing support for fixtures. This namespace
is only present under the dev leiningen profile:
(load-fixtures :small)
The is ample documentation in quickstart around creating
schemas. The one provided in sandbox is a minimal one:
(def env
{:jdbc jdbc-config
:schema (make-schema
(entity :account
(field :id (ident))
(field :name (ident))
(field :state (transform :keyword))))})
At this point, you are ready to go:
(query env :account [:account/name :account/state])
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |