Liking cljdoc? Tell your friends :D

migratus.database


complete?clj

(complete? db table-name id)
source

completed-ids*clj

(completed-ids* db table-name)
source

connect*clj

(connect* db)
source

create-migration-table!clj

(create-migration-table! db modify-sql-fn table-name)

Creates the schema for the migration table via t-con in db in table-name

Creates the schema for the migration table via t-con in db in table-name
sourceraw docstring

datetime-backend?clj

(datetime-backend? db)

Checks whether the underlying backend requires the applied column to be of type datetime instead of timestamp.

Checks whether the underlying backend requires the applied column to be
of type datetime instead of timestamp.
sourceraw docstring

default-migrations-tableclj

source

disconnect*clj

(disconnect* db)
source

find-init-scriptclj

(find-init-script dir init-script-name)
source

find-init-script-fileclj

(find-init-script-file migration-dir init-script-name)
source

find-init-script-resourceclj

(find-init-script-resource migration-dir jar init-script-name)
source

init-db!clj

(init-db! db
          migration-dir
          init-script-name
          modify-sql-fn
          transaction?
          properties)
source

init-schema!clj

(init-schema! db table-name modify-sql-fn)
source

inject-propertiesclj

(inject-properties init-script properties)
source

mark-completeclj

(mark-complete db table-name description id)
source

mark-not-completeclj

(mark-not-complete db table-name id)
source

mark-reservedclj

(mark-reserved db table-name)
source

mark-unreservedclj

(mark-unreserved db table-name)
source

migrate-down*clj

(migrate-down* db config migration)
source

migrate-up*clj

(migrate-up* db
             {:keys [tx-handles-ddl?] :as config}
             {:keys [name] :as migration})
source

migration-table-nameclj

(migration-table-name config)
source

migration-table-up-to-date?clj

(migration-table-up-to-date? db table-name)
source

reserved-idclj

source

run-init-script!clj

(run-init-script! init-script-name init-script conn modify-sql-fn transaction?)
source

table-exists?clj

(table-exists? db table-name)

Checks whether the migrations table exists, by attempting to select from it. Note that this appears to be the only truly portable way to determine whether the table exists in a schema which the db configuration will find via a SELECT FROM or INSERT INTO the table. (In particular, note that attempting to find the table in the database meta-data as exposed by the JDBC driver does not tell you whether the table is on the current schema search path.)

Checks whether the migrations table exists, by attempting to select from
it. Note that this appears to be the only truly portable way to determine
whether the table exists in a schema which the `db` configuration will find
via a `SELECT FROM` or `INSERT INTO` the table. (In particular, note that
attempting to find the table in the database meta-data as exposed by the JDBC
driver does *not* tell you whether the table is on the current schema search
path.)
sourceraw docstring

update-migration-table!clj

(update-migration-table! db modify-sql-fn table-name)

Updates the schema for the migration table via t-con in db in table-name

Updates the schema for the migration table via t-con in db in table-name
sourceraw docstring

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

× close