~subsetpark/doozer

doozer/doozer/backends/sqlite.janet -rw-r--r-- 344 bytes
4a8e0e3e — Zach Smith update docs 1 year, 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(setdyn :doc "SQL backend for SQLite.")

(import /doozer/backends/sql)

(def backend
  ```
  The backend for emitting SQLite3-compatible source.
  ```
  (table/setproto

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

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