Update friendly-sql-functions.md
This commit is contained in:
parent
3059946a8c
commit
4bd71d96c9
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ At program startup you'll need to call these functions (either at the top-level
|
||||||
Those calls will add function definitions to that namespace based on what is in the `.sql` files. Now set up your db-spec and datasource as usual with `next.jdbc`:
|
Those calls will add function definitions to that namespace based on what is in the `.sql` files. Now set up your db-spec and datasource as usual with `next.jdbc`:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(def db-spec {:dbytpe "h2:mem" :dbtype "example"}) ; assumes H2 driver in deps.edn
|
(def db-spec {:dbtype "h2:mem" :dbname "example"}) ; assumes H2 driver in deps.edn
|
||||||
|
|
||||||
(def ds (jdbc/get-datasource db-spec))
|
(def ds (jdbc/get-datasource db-spec))
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue