From 431b961d6bbb0008bdb4fce81ad2cf9d6ab0a287 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 14 May 2013 12:23:00 +1000 Subject: Fix up the README (example code) --- README.md | 6 +++--- 1 file 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 -- cgit v1.2.3