(calc-next-idx idx)For all repos, calculates next build idx and stores it in the repo-indices table.
For all repos, calculates next build idx and stores it in the `repo-indices` table.
(col-idx table col)Defines an index for a single column
Defines an index for a single column
(cuid-idx table)Generates a unique index on the cuid column for given table.
Generates a unique index on the `cuid` column for given table.
(fk col ref-table ref-col & [no-cascade?])Defines a foreign key constraint on the column that references another table column.
Defines a foreign key constraint on the column that references another table column.
(->migration obj sql-opts)Convert the object into a migration, using sql opts
Convert the object into a migration, using sql opts
(migration id up down)Creates a new migration, with given id and up/down statements. The statements can either be raw strings, or honeysql statements which are then converted to sql.
Creates a new migration, with given id and up/down statements. The statements can either be raw strings, or honeysql statements which are then converted to sql.
(prepare-migrations opts)(prepare-migrations migrations opts)Prepares all migrations by formatting to sql, creates a ragtime migration object from it.
Prepares all migrations by formatting to sql, creates a ragtime migration object from it.
(run-migrations! conn)Runs SQL migrations on the database indicated by the connection
Runs SQL migrations on the database indicated by the connection
(with-migrations conn f)Runs migrations, executes f and then rolls back. Useful for testing.
Runs migrations, executes `f` and then rolls back. Useful for testing.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |