License: Apache Version 2
Library Functions to manage the commits graph
Example
const woqlLib = WOQLLibrary()
woqlLib.branches()
//or you can call this functions using WOQL Class
WOQL.lib().branches()
General Pattern 4: Retrieves Branches, Their ID, Head Commit ID, Head Commit Time (if present, new branches have no commits)
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] | string |
the branch name |
[limit] | number |
the max number of result |
[start] | number |
the start of the pagination |
[timestamp] | number |
Unix timestamp in seconds |
get commits older than the specified commit id
Param | Type | Description |
---|---|---|
[commit_id] | string |
the commit id |
[limit] | number |
the max number of result |
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