Skip to content

Commit

Permalink
update data output example with new code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Dec 10, 2015
1 parent 62578e3 commit 373866b
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,30 @@ stat emitters.
<br style="clear:both"/>

```
mysql> insert into test.maxwell set id = 11, daemon = 'firebus! firebus!';
(maxwell)
{
"database":"test",
"table":"maxwell",
"type":"insert",
"data":{"id":11,"daemon":"firebus! firebus!"}
}
mysql> insert into `test`.`maxwell` set id = 1, daemon = 'Stanlislaw Lem';
<- {
"database":"test",
"table":"maxwell",
"type":"insert",
"ts":1449786310,
"xid":940753,
"commit":true,
"data":{ "id":1, "daemon": "Stanlislaw Lem" }
}
mysql> update test.maxwell set id = 11, daemon = 'firebus! firebus!';
<- {
"database":"test",
"table":"maxwell",
"type":"update",
"ts":1449786341,
"xid":940786,
"commit":true,
"data":{"id":11, "daemon":"Firebus! Firebus!"},
"old":{"id":1, "daemon":"Stanlislaw Lem"}
}
```

<script>
Expand Down

0 comments on commit 373866b

Please sign in to comment.