summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 74c63bb..ad7ae3d 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ allow for data to be inserted, updated and deleted.
queries is performed by multimethods which dispatch on an arbitrary
(and otherwise unused) `db` parameter. This allows the compilation of
queries to be entirely special-cased per database. By default
-`clojure-sql` will produce standard ANSI SQL.
+`clojure-sql` will produce SQL for PostgreSQL.
## Usage
@@ -39,8 +39,10 @@ queries to be entirely special-cased per database. By default
'(= :uid :pid))
(s/project [:username]))
; => ["SELECT \"u\".\"username\" FROM \"users\" AS \"u\" JOIN \"people\" AS \"p\" ON (\"u\".\"id\" = \"p\".\"id\") WHERE (\"p\".\"fname\" = ?)" "Henry")]
-
- (s/use-jdbc! "postgres://user:pass@localhost:5432/db")
+
+ (require '[clojure-sql.jdbc :as jdbc])
+ ; => nil
+ (jdbc/use-jdbc! "postgres://user:pass@localhost:5432/db")
; => nil