WOQLLibrary
WOQLLibrary
License: Apache Version 2
new WOQLLibrary()
Library Functions to manage the commits graph
Example
branches
woqlLibrary.branches()
General Pattern 4: Retrieves Branches, Their ID, Head Commit ID, Head Commit Time (if present, new branches have no commits)
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
Param | Type | Description |
---|---|---|
[branch] |
| the branch name |
[limit] |
| the max number of result |
[start] |
| the start of the pagination |
[timestamp] |
| Unix timestamp in seconds |
previousCommits
woqlLibrary.previousCommits([commit_id], [limit])
get commits older than the specified commit id
Param | Type | Description |
---|---|---|
[commit_id] |
| the commit id |
[limit] |
| the max number of result |
first_commit
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
Last updated