clarify in README that honeysql just generates sql

and has nothing to do with your db connection

Fix #148?
This commit is contained in:
Michael Blume 2017-05-20 21:45:20 -07:00
parent 63d04cf8fc
commit 2088a198e9

View file

@ -33,6 +33,14 @@ Everything is built on top of maps representing SQL queries:
=> ["SELECT a, b, c FROM foo WHERE (f.a = ?)" "baz"]
```
Honeysql is a relatively "pure" library, it does not manage your sql connection
or run queries for you, it simply generates SQL strings. You can then pass them
to jdbc:
```clj
(jdbc/execute! conn (sql/format sqlmap)
```
You can build up SQL maps yourself or use helper functions. `build` is the Swiss Army Knife helper. It lets you leave out brackets here and there:
```clj