开发者

Managing transactions in Rails3 with MySQL and InnoDB

开发者 https://www.devze.com 2023-03-08 05:21 出处:网络
I changed my MySQL storage engine to be InnoDB so that it can manage transactions for me. Is there a recommended 开发者_如何学编程or good-practice way or set of methods that people use to see a MySQL

I changed my MySQL storage engine to be InnoDB so that it can manage transactions for me.

Is there a recommended 开发者_如何学编程or good-practice way or set of methods that people use to see a MySQL transaction in Rails from beginning to end, and ability to roll back changes?

Thanks!


The only information I was able to find was this link. Its part of the old Rails wiki and it mentions the support for transaction rollbacks. As far as viewing transactions, is the debugging output not verbose enough for you?


I'm not 100% sure I've understood the question, maybe you mean something specific when you say "see a transaction". But assuming you're just asking how to work with transactions in Rails - take a look in the Rails API docs

0

精彩评论

暂无评论...
验证码 换一张
取 消