Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cgivre/drill-nodejs
- Owner: cgivre
- License: apache-2.0
- Created: 2017-08-09T19:36:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T03:48:18.000Z (over 7 years ago)
- Last Synced: 2024-12-11T10:38:31.778Z (about 1 month 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
[![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});
});
```