summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-05-14 12:23:00 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-05-14 12:23:00 +1000
commit431b961d6bbb0008bdb4fce81ad2cf9d6ab0a287 (patch)
tree8c39492d1304670eb49cad69cd441ef6b5c83345
parentd37dc87a15767fc48a251539875ef28df372a8cd (diff)
Fix up the README (example code)
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5e58b6b..adfccdd 100644
--- a/README.md
+++ b/README.md
@@ -14,12 +14,12 @@ data to be inserted, updated and deleted.
## Usage
- (require '[clojure.sql :as s])
+ (require '[clojure-sql.core :as s])
(-> (s/table :users)
(s/project [:id :username])
deref)
- ; => "SELECT \"users\".\"id\", \"users\".\"username\" FROM \"users\""
+ ; => ["SELECT \"users\".\"id\", \"users\".\"username\" FROM \"users\"" ()]
(-> (s/table {:users :u})
(s/project [:id :username])
@@ -30,7 +30,7 @@ data to be inserted, updated and deleted.
'(= :uid :pid))
(s/project [:username])
deref)
- ; => "SELECT \"u\".\"username\" FROM \"users\" AS \"u\" JOIN \"people\" AS \"p\" ON (\"u\".\"id\" = \"p\".\"id\") WHERE (\"p\".\"fname\" = 'Henry')"
+ ; => ["SELECT \"u\".\"username\" FROM \"users\" AS \"u\" JOIN \"people\" AS \"p\" ON (\"u\".\"id\" = \"p\".\"id\") WHERE (\"p\".\"fname\" = ?)" ("Henry"))]
## License