modern-query-engine
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

What is this repository for?

  • 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.2

How do I get set up?

npm install modern-query-engine

To configuration, We have to import init() from the library and pass the following object in the parameters.

const queryConfig = { minervaUrl: URL, querySubmitTimeout: 15000, nextUriTimeout: 100, minervaRoutingGroup: "", minervaClusterName: "minervab", userID : "" };

init(queryConfig);

NOTE: only minervaUrl && userID is required.

To run the query we have to import query function from library and pass three params one is the apikey and second is query text and third one is callback function to get progress of running of query

let { columns, queryInfo, cluster, data } = query(apiKey, query, (progress: any) => { });

To kill running query, we have to import killQuery function from library and pass the two params one is the progress object and second is apiKey

killQuery(queryProgress, apiKey);

Package Sidebar

Install

npm i modern-query-engine

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • the-modern-data-company