Skip to content

Instantly share code, notes, and snippets.

@ericwush
Last active February 27, 2018 23:51
Show Gist options
  • Save ericwush/9ee56ce64d72434c4a0c41d45985c95d to your computer and use it in GitHub Desktop.
Save ericwush/9ee56ce64d72434c4a0c41d45985c95d to your computer and use it in GitHub Desktop.
mysql> insert into `test`.`maxwell` set id = 1, daemon = 'Stanislaw Lem';
maxwell: {
"database": "test",
"table": "maxwell",
"type": "insert",
"ts": 1449786310,
"xid": 940752,
"commit": true,
"data": { "id":1, "daemon": "Stanislaw Lem" }
}
mysql> update test.maxwell set daemon = 'firebus! firebus!' where id = 1;
maxwell: {
"database": "test",
"table": "maxwell",
"type": "update",
"ts": 1449786341,
"xid": 940786,
"commit": true,
"data": {"id":1, "daemon": "Firebus! Firebus!"},
"old": {"daemon": "Stanislaw Lem"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment