Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cgivre/drill-nodejs

NodeJS client for Apache Drill
https://github.com/cgivre/drill-nodejs

apache-drill node-module nodejs sql

Last synced: 21 days ago
JSON representation

NodeJS client for Apache Drill

Awesome Lists containing this project

README

        

[![npm package](https://nodei.co/npm/drill-client.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/drill-client)

[![Known Vulnerabilities](https://snyk.io/test/github/cgivre/drill-nodejs/badge.svg)](https://snyk.io/test/github/cgivre/drill-nodejs)

# Apache Drill Client for NodeJS
These are initial experiments to create a connector for NodeJS to query Apache Drill.

## Usage
To query Drill, the `.execute()` or `.query()` functions
```
var client = new Drill.Client({hostname:'localhost', port:8047});

client.query('SELECT * FROM cp.`employee.json` LIMIT 10', function(error, data, columns){
console.log({data: data['rows'], columns: data['columns'], error: error});
});
```