File tree 2 files changed +7
-17
lines changed
2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -4,25 +4,13 @@ NPM Package to provide events when a MySQL select statement result set changes.
4
4
5
5
Built using the [ ` zongji ` Binlog Tailer] ( https://github.com/nevill/zongji ) and [ ` node-mysql ` ] ( https://github.com/felixge/node-mysql ) projects.
6
6
7
- ## * Under Construction*
8
-
9
- This package is not yet completed. In order to test it, you must clone the repo. Please use the following command sequence as a guide:
10
-
11
- ``` bash
12
- $ git clone https://github.com/numtel/mysql-live-select.git
13
- $ cd mysql-live-select
14
- $ npm install
15
- # To use example as-is, copy example data into MySQL
16
- $ mysql < example.sql
17
- # Configure example to match your MySQL settings
18
- # (Be sure to also to enable the binary log, as described in next section)
19
- $ vim example.js
20
- # Run example
21
- $ node example.js
22
- ```
23
-
24
7
## Installation
25
8
9
+ * Add the package to your project:
10
+ ``` bash
11
+ $ npm install mysql-live-select
12
+ ```
13
+
26
14
* Enable MySQL binlog in ` my.cnf ` , restart MySQL server after making the changes.
27
15
28
16
```
Original file line number Diff line number Diff line change
1
+ /* mysql-live-select, MIT License [email protected]
2
+ example.js - Use mysql < example.sql to get started */
1
3
var LiveMysql = require ( './' ) ;
2
4
3
5
var settings = {
You can’t perform that action at this time.
0 commit comments