0.0.2 • Published 8 years ago

thrifty v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

thrifty

A lightweight wrapper for mapd-connector

Getting Started

npm install thrifty

Then use it like so:

import Thrifty from "thrifty"

const connection = new Thrifty({
  protocol: "https",
  host: "metis.mapd.com",
  port: "443",
  dbName: "mapd",
  user: "mapd",
  password: "HyperInteractive"
})

connection.connect().then(connection => {
  connection.logging(true)
  return connection.query("SELECT COUNT(*) FROM tweets_nov_feb")
}).then(result => console.log(result))