Update friendly-sql-functions.md

This commit is contained in:
alexandrkozyrev 2020-12-16 14:47:15 +03:00 committed by GitHub
parent 3059946a8c
commit 4bd71d96c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))
``` ```