Guide

Gungnir tries to supply all the tools you need to easily manage communication between your Clojure datastructures and SQL. There are a few modules that serve this purpose.

  • database - Establishing a database connection, thread pooling, and handling database errors.

  • migration - Migrations are important to make sure you properly transform your database and have the ability to roll back in case something goes wrong.

  • model - Models describe your Clojure datastructures. Validations, transformations, error formatting, and relational mapping between maps are handled here.

  • changeset - Changesets are used to prepare data to be saved in the database and cast external data to valid Clojure maps.

  • query - Query provides an API to read from the database and is based on HoneySQL.

  • transaction - Write transactions to batch multiple queries.