Liking cljdoc? Tell your friends :D

oc.lib.db.migrations

Migrate RethinkDB data.

Migrate RethinkDB data.
raw docstring

createclj

(create migrations-dir migration-template provided-name)

Create a new migration with the current date and the name.

Create a new migration with the current date and the name.
sourceraw docstring

create-compound-indexclj

(create-compound-index conn table-name index-name index-function)
(create-compound-index conn table-name index-name index-function options)

Create RethinkDB table compound index for the specified fields if it doesn't exist.

Create RethinkDB table compound index for the specified fields if it doesn't exist.
sourceraw docstring

create-indexclj

(create-index conn table-name index-name)
(create-index conn table-name index-name options)

Create RethinkDB table index for the specified field if it doesn't exist.

Create RethinkDB table index for the specified field if it doesn't exist.
sourceraw docstring

create-tableclj

(create-table conn db-name table-name primary-key)

Create a RethinkDB table with the specified primary key if it doesn't exist.

Create a RethinkDB table with the specified primary key if it doesn't exist.
sourceraw docstring

delete-tableclj

(delete-table conn table-name)

Delete the specified RethinkDB table.

Delete the specified RethinkDB table.
sourceraw docstring

migrateclj

(migrate db-map migrations-dir)
(migrate conn db-name migrations-dir)

Create the database (if needed) and the migration table (if needed) and run any migrations that haven't already been run on this DB.

Create the database (if needed) and the migration table (if needed) and run any
migrations that haven't already been run on this DB.
sourceraw docstring

migration-file-nameclj

(migration-file-name migrations-dir migration-name)
source

remove-propertiesclj

(remove-properties conn table-name props)

Remove the specified properties (sequence of strings or keywords) from all docs in the specified table.

Remove the specified properties (sequence of strings or keywords)  from all docs in the specified table.
sourceraw docstring

rename-tableclj

(rename-table conn db-name old-table-name new-table-name)

Rename a RethinkDB table from the old name to the new name if it exists.

Rename a RethinkDB table from the old name to the new name if it exists.
sourceraw docstring

run-migrationclj

(run-migration conn migrations-dir migration-name)

Run the migration specified by the migration name.

Run the migration specified by the migration name.
sourceraw docstring

table-listclj

(table-list conn)

Return a sequence of the table names in the RethinkDB.

Return a sequence of the table names in the RethinkDB.
sourceraw docstring

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

× close