Liking cljdoc? Tell your friends :D

datahike.experimental.versioning

Git-like versioning tools for Datahike.

Git-like versioning tools for Datahike.
raw docstring

branch!clj

(branch! conn from new-branch)

Create a new branch from commit-id or existing branch as new-branch.

Create a new branch from commit-id or existing branch as new-branch.
sourceraw docstring

branch-as-dbclj

(branch-as-db store branch)

Loads the database stored at this branch.

Loads the database stored at this branch.
sourceraw docstring

branch-historyclj

(branch-history conn)

Returns a go-channel with the commit history of the branch of the connection in form of all stored db values. Performs backtracking and returns dbs in order.

Returns a go-channel with the commit history of the branch of the connection in
form of all stored db values. Performs backtracking and returns dbs in order.
sourceraw docstring

commit-as-dbclj

(commit-as-db store commit-id)

Loads the database stored at this commit id.

Loads the database stored at this commit id.
sourceraw docstring

commit-idclj

(commit-id db)

Retrieve the commit-id for this db.

Retrieve the commit-id for this db.
sourceraw docstring

delete-branch!clj

(delete-branch! conn branch)

Removes this branch from set of known branches. The branch will still be accessible until the next gc. Remote readers need to release their connections.

Removes this branch from set of known branches. The branch will still be
accessible until the next gc. Remote readers need to release their connections.
sourceraw docstring

force-branch!clj

(force-branch! db branch parents)

Force the branch to point to the provided db value. Branch will be created if it does not exist. Parents need to point to a set of branches or commits.

Be careful with this command as you can render a db inaccessible by corrupting a branch. You will also conflict with existing connections to the branch so make sure to close them before forcing the branch.

Force the branch to point to the provided db value. Branch will be created if
it does not exist. Parents need to point to a set of branches or commits.

Be careful with this command as you can render a db inaccessible by corrupting
a branch. You will also conflict with existing connections to the branch so
make sure to close them before forcing the branch.
sourceraw docstring

merge!clj

(merge! conn parents tx-data)
(merge! conn parents tx-data tx-meta)

Create a merge commit to the current branch of this connection for parent commit uuids. It is the responsibility of the caller to make sure that tx-data contains the data to be merged into the branch from the parents. This function ensures that the parent commits are properly tracked.

NOTE: Currently merge! requires that you release all connections to conn and reconnect afterwards to reset the writer state. This will be fixed in the future by handling merge! through the writer.

Create a merge commit to the current branch of this connection for parent
commit uuids. It is the responsibility of the caller to make sure that tx-data
contains the data to be merged into the branch from the parents. This function
ensures that the parent commits are properly tracked.
 
 NOTE: Currently merge! requires that you release all connections to conn and reconnect afterwards to reset the writer state. This will be fixed in the future by handling merge! through the writer.
sourceraw docstring

parent-commit-idsclj

(parent-commit-ids db)

Retrieve parent commit ids from db.

Retrieve parent commit ids from db.
sourceraw docstring

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

× close