~subsetpark/doozer

doozer/doozer/backends/postgres.janet -rw-r--r-- 409 bytes
4a8e0e3e — Zach Smith update docs 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(setdyn :doc "SQL backend for PostgresQL.")

(import /doozer/backends/sql)

(def config
  @{:sql-param-type :positional})

(def backend
  ```
  The backend for emitting PostgresQL source.
  ```
  (table/setproto

    @{:config config

      :quote-element
      (fn quote-element
        [_ element]
        (string `"` element `"`))}
    sql/backend))

(defn config! [] (setdyn :doozer/sql-backend backend))