prestodb

0.2.0 • Public • Published

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

/prestodb/

    Package Sidebar

    Install

    npm i prestodb

    Weekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • lourenzo