Liking cljdoc? Tell your friends :D

k16.mallard.api


redo!clj

(redo! props)

Reapply the last applied migration. This will roll it back first

Reapply the last applied migration. This will roll it back first
raw docstring

runclj

(run {create-ctx-fn :create-ctx!
      create-store-fn :create-store!
      shutdown-fn :shutdown!
      migrations-dir :migrations-dir
      action :action})

A run function to be used in a Deps.edn project to execute migrations using the file loader.

:init-store! - Should be given a symbol that resolves to a datastore init function. :migrations-dir - should be a resource path to a directory containing migration files that will be loaded using the file loader. :action - should be given an action to perform. One of #{:up :down :next :undo :redo}

A run function to be used in a Deps.edn project to execute migrations using the file loader.

:init-store! - Should be given a symbol that resolves to a datastore init function.
:migrations-dir - should be a resource path to a directory containing migration files that will
                  be loaded using the file loader.
:action - should be given an action to perform. One of #{:up :down :next :undo :redo}
raw docstring

run-down!clj

(run-down! props)

Rollback all applied migrations

Rollback all applied migrations
raw docstring

run-next!clj

(run-next! props)

Run the next unapplied migration

Run the next unapplied migration
raw docstring

run-up!clj

(run-up! props)

Execute all unapplied migrations

Execute all unapplied migrations
raw docstring

undo!clj

(undo! props)

Rollback the last applied migration

Rollback the last applied migration
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close