Skip to content

Commit

Permalink
add todos, repl cmds in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolap committed May 20, 2023
1 parent 8aaff01 commit 4add75a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/route_craft/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
;; permit overriding handlers where specifed in config
;; malli schema for swaggerui

;; TODO: extend in opts
;; TODO: handle arrays
(def malli-type-mapping
{:integer :int
:bool :boolean
Expand Down Expand Up @@ -218,3 +220,12 @@
)
(catch Exception e
(log/error e "Failed to create reitit routes"))))

(comment
(def ctx
{:datasource (jdbc/get-datasource {:jdbcUrl "jdbc:postgresql://127.0.0.1:5432/rc?user=rc&password=rc"})})

(let [migratus-config {:migration-dir "test/resources/migrations"
:db ctx
:store :database}]
(migratus/migrate migratus-config)))

0 comments on commit 4add75a

Please sign in to comment.