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

sql-databaseclj

(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)
raw 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.
raw docstring

SqlDatabaseclj


SqlMigrationclj

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

× close