Functions for loading SQL migrations and applying them to a SQL database.
Functions for loading SQL migrations and applying them to a SQL database.
(load-directory path)
Load a collection of Ragtime migrations from a directory.
Load a collection of Ragtime migrations from a directory.
Given an collection of files with the same extension, return a ordered collection of migrations. Dispatches on extension (e.g. ".edn"). Extend this multimethod to support new formats for specifying SQL migrations.
Given an collection of files with the same extension, return a ordered collection of migrations. Dispatches on extension (e.g. ".edn"). Extend this multimethod to support new formats for specifying SQL migrations.
(load-resources path)
Load a collection of Ragtime migrations from a classpath prefix.
Load a collection of Ragtime migrations from a classpath prefix.
(sql-database ds)
(sql-database ds options)
Given a ds and a map of options, return a Migratable database. The following options are allowed:
:migrations-table - the name of the table to store the applied migrations (defaults to ragtime_migrations)
Given a ds and a map of options, return a Migratable database. The following options are allowed: :migrations-table - the name of the table to store the applied migrations (defaults to ragtime_migrations)
(sql-migration migration-map)
Create a Ragtime migration from a map with a unique :id, and :up and :down keys that map to ordered collection of SQL strings.
Create a Ragtime migration from a map with a unique :id, and :up and :down keys that map to ordered collection of SQL strings.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close