Liking cljdoc? Tell your friends :D

luminus-migrations.core


createclj

(create name opts & [type])

Wrapper around migratus/create. Creates a migration file with generated timestamp-based migration id. name - string, name of migration to be created. opts - map of options specifying the database configuration. supported options are: :db - Migratus db config map :database-url - URL of the application database :migration-dir - string specifying the directory of the migration files :migration-table-name - string specifying the migration table name type - keyword, migration type (e.g. :sql and :edn for code-based migrations)

Wrapper around migratus/create.
Creates a migration file with generated timestamp-based migration id.
name - string, name of migration to be created.
opts - map of options specifying the database configuration.
supported options are:
:db - Migratus db config map
:database-url - URL of the application database
:migration-dir - string specifying the directory of the migration files
:migration-table-name - string specifying the migration table name
type - keyword, migration type (e.g. :sql and :edn for code-based migrations)
sourceraw docstring

initclj

(init opts)

wrapper around migratus/init initializes the database using the script specified by the :init-script key opts - map of options specifying the database configuration. supported options are: :db - Migratus db config map :init-script - SQL script that initialized the database :database-url - URL of the application database :migration-dir - string specifying the directory of the migration files :migration-table-name - string specifying the migration table name

wrapper around migratus/init
initializes the database using the script specified by the :init-script key
opts - map of options specifying the database configuration.
supported options are:
:db - Migratus db config map
:init-script - SQL script that initialized the database
:database-url - URL of the application database
:migration-dir - string specifying the directory of the migration files
:migration-table-name - string specifying the migration table name
sourceraw docstring

migrateclj

(migrate args opts)

args - vector of arguments, e.g: ["migrate" "201506104553"] opts - map of options specifying the database configuration. supported options are: :database-url - URL of the application database :migration-dir - string specifying the directory of the migration files :migration-table-name - string specifying the migration table name

args - vector of arguments, e.g: ["migrate" "201506104553"]
opts - map of options specifying the database configuration.
supported options are:
:database-url - URL of the application database
:migration-dir - string specifying the directory of the migration files
:migration-table-name - string specifying the migration table name
sourceraw docstring

migration?clj

(migration? [arg])
source

migrationsclj

source

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

× close