diff options
author | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-05-14 12:23:00 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-05-14 12:23:00 +1000 |
commit | 431b961d6bbb0008bdb4fce81ad2cf9d6ab0a287 (patch) | |
tree | 8c39492d1304670eb49cad69cd441ef6b5c83345 | |
parent | d37dc87a15767fc48a251539875ef28df372a8cd (diff) |
Fix up the README (example code)
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |