prestodb
v0.2.0
Published
Facebook's PrestoDB Client for NodeJS
Downloads
25
Readme
Presto db Client
A new Presto HTTP API wrapper for Node.js.
Usage
'use strict';
const PrestoClient = require('prestodb');
let prestoClient = new PrestoClient({
url: 'http://server-url:8080',
user: 'presto',
nextUriTimeout: 200 // in miliseconds
});
prestoClient.sendStatement('SELECT * FROM catalog.schema.table')
.then((result) => {
console.log(result)
})
.catch((error) => {
console.error({ error })
});