我有一个mysql数据库。我想做的是对它执行一个任意的操作,然后找出什么改变了。就像这样:
//assume connection to db already established
before();//saves db state
perform_action();//does stuff to db
diff();//prints what happened
我希望它能输出如下内容:
Row added in table_0 ]details]
Row added in table_1 [details]
Row modified in table_5 [details]
Row de