Liking cljdoc? Tell your friends :D

automigrate.core

Public interface for lib's users.

Public interface for lib's users.
raw docstring

explainclj

(explain args)

Show raw SQL for migration by number

Available options:

  • :migrations-dir - path to dir for storing migrations (required)
  • :number - integer number of migration to explain (required)
  • :direction - direction for SQL from migration (optional)
Show raw SQL for migration by number

Available options:
- :migrations-dir - path to dir for storing migrations (required)
- :number - integer number of migration to explain (required)
- :direction - direction for SQL from migration (optional)
raw docstring

listclj

(list args)

Show list of existing migrations with status.

Available options:

  • :jdbc-url - jdbc url of database connection (required)
  • :migrations-dir - path to dir for storing migrations (required)
  • :migrations-table - optional migrations' table name (optional)
Show list of existing migrations with status.

Available options:
- :jdbc-url - jdbc url of database connection (required)
- :migrations-dir - path to dir for storing migrations (required)
- :migrations-table - optional migrations' table name (optional)
raw docstring

makeclj

(make args)

Create new migration based on changes of models.

Available options:

  • :models-file - path to models' file (required)
  • :migrations-dir - path to dir for storing migrations (required)
  • :name - custom name for migration (optional)
  • :type - type of new migration, empty by default for auto-migration; also available :empty-sql - for creating empty raw SQL migration; (optional)
Create new migration based on changes of models.

Available options:
  - :models-file - path to models' file (required)
  - :migrations-dir - path to dir for storing migrations (required)
  - :name - custom name for migration (optional)
  - :type - type of new migration, empty by default for auto-migration;
            also available :empty-sql - for creating empty raw SQL migration; (optional)
raw docstring

migrateclj

(migrate args)

Run existing migrations and change database schema.

Available options:

  • :jdbc-url - jdbc url of database connection (required)
  • :migrations-dir - path to dir for storing migrations (required)
  • :migrations-table - optional migrations' table name (optional)
  • :number - integer number of target point migration (optional)
Run existing migrations and change database schema.

Available options:
- :jdbc-url - jdbc url of database connection (required)
- :migrations-dir - path to dir for storing migrations (required)
- :migrations-table - optional migrations' table name (optional)
- :number - integer number of target point migration (optional)
raw docstring

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

× close