mrblueblue / thrifty

lightweight wrapper for mapd-connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

lightweight wrapper for mapd-connector

License:MIT License


Languages

Language:JavaScript 91.3%Language:HTML 8.7%