Liking cljdoc? Tell your friends :D

clj-liquibase.core

Expose functions from the Liquibase library. See also: http://www.liquibase.org/documentation/index.html

Expose functions from the Liquibase library.
See also:
  http://www.liquibase.org/documentation/index.html
raw docstring

*changelog-params*clj

Changelog params (liquibase.changelog.ChangeLogParameters) instance.

Changelog params (liquibase.changelog.ChangeLogParameters) instance.
sourceraw docstring

*db-instance*clj

Database (liquibase.database.Database) instance.

Database (liquibase.database.Database) instance.
sourceraw docstring

*logical-filepath*clj

Logical filepath use by ChangeSet and ChangeLog instances.

Logical filepath use by ChangeSet and ChangeLog instances.
sourceraw docstring

change-sqlclj

(change-sql change)

Return a list of SQL statements (string) that would be required to execute the given Change object instantly for current database without versioning.

Return a list of SQL statements (string) that would be required to execute
the given Change object instantly for current database without versioning.
sourceraw docstring

changelog?clj

(changelog? x)

Return true if specified argument is a liquibase.changelog.DatabaseChangeLog instance, false otherwise.

Return true if specified argument is a liquibase.changelog.DatabaseChangeLog
instance, false otherwise.
sourceraw docstring

changeset?clj

(changeset? x)

Return true if specified argument is a liquibase.changelog.ChangeSet instance, false otherwise.

Return true if specified argument is a liquibase.changelog.ChangeSet
instance, false otherwise.
sourceraw docstring

check-database-changelog-tableclj

(check-database-changelog-table db
                                update-existing-null-checksums
                                db-changelog
                                contexts)

Check database changelog table. See also: liquibase.Liquibase/checkDatabaseChangeLogTable

Check database changelog table.
See also:
  liquibase.Liquibase/checkDatabaseChangeLogTable
sourceraw docstring

defchangelogcljmacrodeprecated

(defchangelog var-name logical-schema change-sets & var-args)

DEPRECATED: Use 'defparser' instead. Define a function that when executed with no arguments, returns a database changelog (DatabaseChangeLog instance) while binding logical-filepath to logical-schema. See also: make-changelog

DEPRECATED: Use 'defparser' instead.
Define a function that when executed with no arguments, returns a database
changelog (DatabaseChangeLog instance) while binding *logical-filepath* to
`logical-schema`.
See also:
  make-changelog
sourceraw docstring

defparsercljmacro

(defparser var-name filepath)
(defparser var-name filepath options)

Define a parser for a changelog file, typically a XML, YAML, JSON or EDN file.

Define a parser for a changelog file, typically a XML, YAML, JSON or EDN file.
sourceraw docstring

diffclj

(diff ref-db-instance)

Report a description of the differences between two databases to standard out. See also: http://www.liquibase.org/documentation/diff

Report a description of the differences between two databases to standard out.
See also:
  http://www.liquibase.org/documentation/diff
sourceraw docstring

do-lockedcljmacro

(do-locked & body)

Acquire lock and execute body of code in that context. Make sure the lock is released (or log an error if it can't be) before exit.

Acquire lock and execute body of code in that context. Make sure the lock is
released (or log an error if it can't be) before exit.
sourceraw docstring

generate-docclj

(generate-doc changelog-fn output-dir)
(generate-doc changelog-fn output-dir contexts)
Generate documentation for changelog.
See also:
  http://www.liquibase.org/documentation/dbdoc
  http://www.liquibase.org/dbdoc/index.html
sourceraw docstring

get-db-executorclj

(get-db-executor)
source

logclj

Liquibase logger

Liquibase logger
sourceraw docstring

make-changelogcljdeprecated

(make-changelog filepath
                change-sets
                &
                {:keys [pre-conditions pre-cond] :as opt})

DEPRECATED: Use 'parse-changelog' instead. Return a DatabaseChangeLog instance. Arguments: change-sets (collection/list) List of ChangeSet instances, or List of arg-lists (for 'make-changeset' fn) Optional args: :pre-conditions :pre-cond ; PreconditionContainer object, or list of Precondition objects See also: http://www.liquibase.org/documentation/databasechangelog make-changelog-params

DEPRECATED: Use 'parse-changelog' instead.
Return a DatabaseChangeLog instance.
Arguments:
  change-sets  (collection/list) List of ChangeSet instances, or
                                 List of arg-lists (for 'make-changeset' fn)
Optional args:
  :pre-conditions :pre-cond  ; PreconditionContainer object, or list of Precondition objects
See also:
  http://www.liquibase.org/documentation/databasechangelog
  make-changelog-params
sourceraw docstring

make-changelog-iteratorclj

(make-changelog-iterator changelog changeset-filters)
(make-changelog-iterator ran-changesets changelog changeset-filters)

Return a ChangeLogIterator instance. See also: liquibase.Liquibase/getStandardChangelogIterator

Return a ChangeLogIterator instance.
See also:
  liquibase.Liquibase/getStandardChangelogIterator
sourceraw docstring

make-changelog-paramsclj

(make-changelog-params db-instance & {:keys [contexts]})

Return a ChangeLogParameters instance.

Return a ChangeLogParameters instance.
sourceraw docstring

make-changesetclj

(make-changeset id
                author
                changes
                &
                {:keys [logical-filepath filepath dbms run-always always
                        run-on-change on-change context ctx run-in-transaction
                        in-txn fail-on-error fail-err comment pre-conditions
                        pre-cond rollback-changes rollback valid-checksum
                        valid-csum visitors]
                 :as opt})

Return a ChangeSet instance. Use MySQL InnoDB for create-table changes by default (unless overridden by :visitors argument.) Arguments: id (String) Author-assigned ID, which can be sequential author (String) Author name (must be kept same across changesets) changes (collection) List of Change objects Optional arguments: :dbms ; String/Keyword/vector-of-multiple :run-always :always ; Boolean :run-on-change :on-change ; Boolean :context :ctx ; String :run-in-transaction :in-txn ; Boolean (true by default) :fail-on-error :fail-err ; Boolean ;; sub tags :comment ; String :pre-conditions :pre-cond ; list of Precondition objects, or PreconditionContainer object :valid-checksum :valid-csum ; String :visitors ; list of SqlVisitor objects See also: http://www.liquibase.org/documentation/changeset

Return a ChangeSet instance. Use MySQL InnoDB for `create-table` changes by
default (unless overridden by :visitors argument.)
Arguments:
  id      (String)     Author-assigned ID, which can be sequential
  author  (String)     Author name (must be kept same across changesets)
  changes (collection) List of Change objects
Optional arguments:
  :dbms                          ; String/Keyword/vector-of-multiple
  :run-always         :always    ; Boolean
  :run-on-change      :on-change ; Boolean
  :context            :ctx       ; String
  :run-in-transaction :in-txn    ; Boolean (true by default)
  :fail-on-error      :fail-err  ; Boolean
  ;; sub tags
  :comment                        ; String
  :pre-conditions     :pre-cond   ; list of Precondition objects, or PreconditionContainer object
  :valid-checksum     :valid-csum ; String
  :visitors                       ; list of SqlVisitor objects
See also:
  http://www.liquibase.org/documentation/changeset
sourceraw docstring

make-db-instanceclj

(make-db-instance conn)

Return a Database instance for current connection.

Return a Database instance for current connection.
sourceraw docstring

output-headerclj

(output-header message)
source

parse-changelogclj

(parse-changelog filepath)
(parse-changelog filepath {:keys [source] :or {source :classpath} :as options})

Return a DatabaseChangeLog instance. Arguments: filepath - name of the changelog file Optional args: :source - either :classpath (default) or :filesystem

Return a DatabaseChangeLog instance.
Arguments:
  filepath - name of the changelog file
Optional args:
  :source  - either :classpath (default) or :filesystem
sourceraw docstring

rollback-by-countclj

(rollback-by-count changelog-fn howmany-changesets)
(rollback-by-count changelog-fn howmany-changesets contexts)
(rollback-by-count changelog-fn howmany-changesets contexts output)

Rollback schema by specified count of changes. See also: liquibase.Liquibase/rollback http://www.liquibase.org/documentation/rollback

Rollback schema by specified count of changes.
See also:
  liquibase.Liquibase/rollback
  http://www.liquibase.org/documentation/rollback
sourceraw docstring

rollback-to-dateclj

(rollback-to-date changelog-fn date)
(rollback-to-date changelog-fn date contexts)
(rollback-to-date changelog-fn date contexts output)

Rollback schema to specified date. See also: liquibase.Liquibase/rollback http://www.liquibase.org/documentation/rollback

Rollback schema to specified date.
See also:
  liquibase.Liquibase/rollback
  http://www.liquibase.org/documentation/rollback
sourceraw docstring

rollback-to-tagclj

(rollback-to-tag changelog-fn tag)
(rollback-to-tag changelog-fn tag contexts)
(rollback-to-tag changelog-fn tag contexts output)

Rollback schema to specified tag. See also: liquibase.Liquibase/rollback http://www.liquibase.org/documentation/rollback

Rollback schema to specified tag.
See also:
  liquibase.Liquibase/rollback
  http://www.liquibase.org/documentation/rollback
sourceraw docstring

tagclj

(tag the-tag)

Tag the database schema with specified tag (coerced as string).

Tag the database schema with specified tag (coerced as string).
sourceraw docstring

updateclj

(update changelog-fn)
(update changelog-fn contexts)
(update changelog-fn contexts output)

Run the Liquibase Update command. See also: liquibase.Liquibase/update make-db-instance http://www.liquibase.org/documentation/update

Run the Liquibase Update command.
See also:
  liquibase.Liquibase/update
  make-db-instance
  http://www.liquibase.org/documentation/update
sourceraw docstring

update-by-countclj

(update-by-count changelog-fn howmany-changesets)
(update-by-count changelog-fn howmany-changesets contexts)
(update-by-count changelog-fn howmany-changesets contexts output)

Run Liquibase Update command restricting number of changes to howmany-changesets. See also: liquibase.Liquibase/update make-db-instance http://www.liquibase.org/documentation/update

Run Liquibase Update command restricting number of changes to howmany-changesets.
See also:
  liquibase.Liquibase/update
  make-db-instance
  http://www.liquibase.org/documentation/update
sourceraw docstring

verify-valid-logical-filepathclj

(verify-valid-logical-filepath)

Verify whether the logical-filepath var has a valid value. Return true if all OK, throw IllegalStateException otherwise.

Verify whether the *logical-filepath* var has a valid value. Return true if
all OK, throw IllegalStateException otherwise.
sourceraw docstring

versionclj

Clj-Liquibase version

Clj-Liquibase version
sourceraw docstring

with-lbcljmacro

(with-lb & body)

Execute body of code in the context of initialized Liquibase settings.

Execute body of code in the context of initialized Liquibase settings.
sourceraw docstring

with-writablecljmacro

(with-writable & body)

Set spec with :read-only? as false and execute body of code in that context.

Set spec with :read-only? as false and execute body of code in that context.
sourceraw docstring

with-writercljmacro

(with-writer output & body)
source

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

× close