Node.js 数据库实时监控库 node-dbmon
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/straps/node-dbmon
- 软件文档: https://github.com/straps/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'
}
});
图片转BASE64编码
在线图片转Base64编码工具
Markdown 在线编辑器
Markdown 在线编辑器
