License: Apache Version 2
Library Functions to manage the commits graph
Example
woqlLibrary.branches()
General Pattern 4: Retrieves Branches, Their ID, Head Commit ID, Head Commit Time (if present, new branches have no commits)
woqlLibrary.commits([branch], [limit], [start], [timestamp])
get all the commits of a specific branch if a timestamp is given, gets all the commits before the specified timestamp
woqlLibrary.previousCommits([commit_id], [limit])
get commits older than the specified commit id
woqlLibrary.first_commit()
Finds the id of the very first commit in a database's history
This is useful for finding information about when, by who and why the database was created The first commit is the only commit in the database that does not have a parent commit
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
[branch]
string
the branch name
[limit]
number
the max number of result
[start]
number
the start of the pagination
[timestamp]
number
Unix timestamp in seconds
[commit_id]
string
the commit id
[limit]
number
the max number of result