Liking cljdoc? Tell your friends :D

JDBC Nodes

Crux nodes can use JDBC databases to store their transaction logs and document stores.

Local Cluster Mode

JDBC Nodes use next.jdbc internally and pass through the relevant configuration options that you can find here.

Below is the minimal configuration you will need:

Table 1. Minimal JDBC Configuration
PropertyDescription

:crux.jdbc/dbtype

One of: postgresql, oracle, mysql, h2, sqlite

:crux.jdbc/dbname

Database Name

Depending on the type of JDBC database used, you may also need some of the following properties:

Table 2. Other JDBC Properties
PropertyDescription

:crux.jdbc/host

Database Host

:crux.jdbc/user

Database Username

:crux.jdbc/password

Database Password

Project Dependencies

link:example$deps.edn[role=include]
link:example$deps.edn[role=include]

Getting started

Use the API to start a JDBC node, configuring it with the required parameters:

link:example$src/docs/examples.clj[role=include]

Can you improve this documentation? These fine people already did:
Daniel Mason & James Henderson
Edit on GitHub

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

× close