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

delete-tableclj

(delete-table conn table-name)

Delete the specified RethinkDB table.

Delete the specified RethinkDB table.
raw 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.
raw docstring

migration-file-nameclj

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

remove-indexclj

(remove-index conn table-name index-name)

Remove a RethinkDB table index for the specified field if it exists.

Remove a RethinkDB table index for the specified field if it exists.
raw docstring

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

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

× close