UNPKG

phoenix-client

Version:

a nodejs project for connecting apache phoenix (a hbase SQL interface)

16 lines (15 loc) 422 B
/** * Created by gaozhu on 2014/9/1. */ phoenix = require("./phoenix.js"); var db = new phoenix("jdbc:phoenix:192.168.252.131,192.168.252.132,192.168.252.133"); db.query("select * from waterreal limit 1",function(datajson){ console.info(datajson); },function(e){ console.info(e); }); db.upsert("upsert into ",function(datajson){ console.info(datajson); },function(e){ console.info(e); });