1
0
Fork 0
Use your web browser to monitor table inserts
Go to file
Andrew Tomaka f4ebe7536f Remove Timezone Dependency
Formerly, the initial record pull was based on the current time of the
server minus five minutes.  This caused timing issues, specifically in
the case where the database server and dbmonitor server had different
timezones set.  The initial record is now grabbed based on the
timestamp of the last record insertted into the table.  If there are
no records in the database 0000-01-01 00:00:00 is used as the initial
timestamp.
2013-02-20 22:36:23 -05:00
config Initial commit 2013-01-05 14:10:01 -05:00
public Implement Simple HTTP Server 2013-02-02 15:28:04 -05:00
.gitignore Initial commit 2013-01-05 14:10:01 -05:00
README.md Implement Simple HTTP Server 2013-02-02 15:28:04 -05:00
dbmonitor.coffee Remove Timezone Dependency 2013-02-20 22:36:23 -05:00
package.json Initial commit 2013-01-05 14:10:01 -05:00

README.md

#DBMonitor

Use your web browser to monitor table inserts

##Description

Monitor inserts to a specific table of a datbase based on a MySQL timestamp column.

##Dependencies

  • nodejs
  • npm

##Install

$ git clone git://github.com/atomaka/dbmonitor.git
$ cd dbmonitor
$ npm install
$ cp config/application.coffee.sample application.coffee
$ cp config/database.coffee.sample database.coffee
  • Edit settings in application.coffee and database.coffee as necessary

##Usage

$ coffee dbmonitor.coffee

Access the application in your browser using the port you have configured.

##License

The MIT License

Copyright (c) 2013 Andrew Tomaka

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.