Skip to content

Commit

Permalink
Merge branch 'clojurescript'
Browse files Browse the repository at this point in the history
  • Loading branch information
cdinger committed Sep 24, 2015
2 parents d43cd4d + 1c0ed8b commit 96fafcb
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,7 @@ been bouncing around for a while. Please don't use this for production purposes.

## Installation

For Leiningen projects, add the latest `com.houseofding/rasql` dependency.

```clojure
(defproject foo "0.1.0"
...
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "0.0-2760"]
[com.houseofding/rasql "0.1.0"]]
...)
```

With the `com.houseofding/rasql` dependency installed, you can then `require` the library and use it:

```clojure
(ns blah
(:require [rasql.core :as rasql]))

(rasql/defrelation creatures)
(rasql/defrelation skills)
(rasql/defrelation abilities)

(rasql/to-sql (join creatures abilities [:= (:id creature) (:creature_id abilities)])
```
For Leiningen projects, add the latest `com.houseofding/rasql` dependency `[com.houseofding/rasql "0.1.0"]` and then require the `rasql.core` in your namespace.

## Basic usage

Expand Down

0 comments on commit 96fafcb

Please sign in to comment.