diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |