Liking cljdoc? Tell your friends :D

ragtime.jdbc

Functions for loading SQL migrations and applying them to a SQL database.

Functions for loading SQL migrations and applying them to a SQL database.
raw docstring

load-directoryclj

(load-directory path)

Load a collection of Ragtime migrations from a directory.

Load a collection of Ragtime migrations from a directory.
sourceraw docstring

load-filescljmultimethod

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.
sourceraw docstring

load-resourcesclj

(load-resources path)

Load a collection of Ragtime migrations from a classpath prefix.

Load a collection of Ragtime migrations from a classpath prefix.
sourceraw docstring

sql-databaseclj

(sql-database db-spec)
(sql-database db-spec options)

Given a db-spec 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 db-spec 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)
sourceraw docstring

sql-migrationclj

(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.
sourceraw docstring

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

× close