阅读背景:

如何在Ruby数据映射中使用事务?

来源:互联网 

I have a class that executes SQL statements (updates, inserts, and deletes) that are stored in a YAML file. I would like all the statements to be part of one transaction. If any of the SQL statements fail, then they would be rolled back. If all of the statements are successful, then they would be committed. I'm connecting to a MySQL database. Here is my code:I have a class that executes SQL statements (up




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: