文件名称:Node.js数据库实时监控库node-dbmon.zip
文件大小:25KB
文件格式:NONE
更新时间:2022-08-07 22:05:26
开源项目
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' } }); 标签:nodedbmon
【文件预览】:
node-dbmon-master
----bin()
--------dbmon(2KB)
----index.js(40B)
----package.json(854B)
----test()
--------test-filesystem-faye.js(1KB)
--------utils.js(1KB)
--------test-filesystem-inotifywait.js(1KB)
--------test-postgresql.js(3KB)
----Readme.md(10KB)
----.gitignore(21B)
----History.md(2KB)
----lib()
--------drivers()
--------channelDefaults.js(4KB)
--------transports()
--------methods()
--------dbmon.js(1KB)
----Makefile(151B)