summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-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