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: 6 months ago
JSON representation
NodeJS client for Apache Drill
- Host: GitHub
- URL: https://github.com/cgivre/drill-nodejs
- Owner: cgivre
- License: apache-2.0
- Created: 2017-08-09T19:36:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T03:48:18.000Z (over 8 years ago)
- Last Synced: 2025-03-25T23:34:36.399Z (about 1 year ago)
- Topics: apache-drill, node-module, nodejs, sql
- Language: JavaScript
- Homepage:
- Size: 1.96 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/drill-client)
[](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});
});
```