node-dbmon Node.js 数据库实时监控库

程序名称:node-dbmon

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

node-dbmon 介绍

node-dbmon 是一个 Node.js 数据库实时监控库,如果你希望在数据库表数据更改后,或者是文件修改后能更新 GUI,那么这个库正好适合你。

示例代码

var pg=require('pg'), cli=new pg.Client('tcp://postgres@localhost/template1'), dbmon=require('dbmon');

cli.connect();
//uncomment if you want node to create the temporary table for you
//cli.query('drop table if exists testtable; create table testtable(id integer primary key, val varchar(10));');

var channel=dbmon.channel({
  driver:'postgresql',
  driverOpts:{
    postgresql:{
      cli:cli
    }
  },
  table:'testtable',
  monitor:'all',
  keyfld:{
    name:'id',type:'integer'
  }
});

node-dbmon 官网

https://github.com/straps/node-dbmon

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐