clarify in README that honeysql just generates sql
and has nothing to do with your db connection Fix #148?
This commit is contained in:
parent
63d04cf8fc
commit
2088a198e9
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue