diff options
Diffstat (limited to 'README.md')
-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 |