Wiki

Clone wiki

SQLRat / Tutorial

Tutorial - SQLRat v0.2

SQLRat uses Clojure 1.2.0 and Clojure-contrib 1.2.0 and is built on the top of clojure.contrib.sql library. In this tutorial we will take the example of a tiny blog with two tables (ENTRY and COMMENT) and proceed with the various database use cases.

You would need to import the namespace as in this example:

(ns example.blog
  (:use org.bituf.sqlrat.entity))

Tutorial Sections

Entity Definition

Functions to work with entities

SQL Clause API

Updated