```
npm install minerva-js-client``
* Quick summary
This library will provide some function where we can pass sql as params and get the data. As well as we can kill the runing query and get the cluster info also.
* Version : 1.0.4
`
`
npm install minerva-js-client
`
`
import Minerva from "minerva-js-client";
const minerva = new Minerva({
url: url,
apikey: key,
source: "source name",
cluster: "selectedClusterName",
minervaQueryTimeout: 5000
});
`
NOTE: url, apiKey, source and cluster are required. minervaQueryTimeout is optional.
let response = minerva.query(enforcedQuery, (progress: any) => {
console.log( progress )
});
`
$3
`
minerva.cancel(queryId);``