WOQLLibrary

WOQLLibrary

License: Apache Version 2

new WOQLLibrary()

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()

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

ParamTypeDescription

[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

previousCommits

woqlLibrary.previousCommits([commit_id], [limit])

get commits older than the specified commit id

ParamTypeDescription

[commit_id]

string

the commit id

[limit]

number

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