0.2.0 • Published 7 years ago

prestodb v0.2.0

Weekly downloads
25
License
MIT
Repository
github
Last release
7 years ago

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 })
	});
0.2.0

7 years ago

0.1.0

7 years ago