Liking cljdoc? Tell your friends :D

datahike.norm.norm


checksums-fileclj

source

ensure-norms!clj

(ensure-norms! conn)
(ensure-norms! conn file-or-resource)

Takes Datahike-connection and optional a java.io.File object or java.net.URL to specify the location of your norms. Defaults to the resource migrations. Returns nil when successful and throws exception when not.

Ensures your norms are present on your Datahike database. All the edn-files in this folder and its subfolders are considered migration-files aka norms and will be transacted ordered by their names into your database. All norms that are successfully transacted will have an attribute that marks them as migrated and they will not be applied twice.

Takes Datahike-connection and optional a java.io.File object
or java.net.URL to specify the location of your norms.
Defaults to the resource `migrations`.
Returns nil when successful and throws exception when not.

Ensures your norms are present on your Datahike database.
All the edn-files in this folder and its subfolders are
considered migration-files aka norms and will be transacted
ordered by their names into your database. All norms that
are successfully transacted will have an attribute that
marks them as migrated and they will not be applied twice.
sourceraw docstring

filename->keywordclj

(filename->keyword filename)
source

update-checksums!clj

(update-checksums!)
(update-checksums! norms-folder)

Optionally takes a folder as string. Defaults to the folder resources/migrations. Returns nil when successful and throws exception when not.

All the edn-files in the folder and its subfolders are considered migration-files aka norms. For each of these norms a checksum will be computed and written to the file checksums.edn. Each time this fn is run, the checksums.edn will be overwritten with the current values. This prevents inadvertent migrations of your database when used in conjunction with a VCS. A merge-conflict should be raised when trying to merge a checksums.edn with stale data.

Optionally takes a folder as string. Defaults to the
folder `resources/migrations`.
Returns nil when successful and throws exception when not.

All the edn-files in the folder and its subfolders are
considered migration-files aka norms. For each of
these norms a checksum will be computed and written to
the file `checksums.edn`. Each time this fn is run,
the `checksums.edn` will be overwritten with the current
values.
This prevents inadvertent migrations of your database
when used in conjunction with a VCS. A merge-conflict
should be raised when trying to merge a checksums.edn
with stale data.
sourceraw docstring

verify-checksumscljmultimethod

source

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

× close