{"categories":["Ruby","Sequel"],"title":"Sequel\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u3068COMMIT\u3055\u308c\u3066\u3057\u307e\u3046","width":"100%","description":"\u3061\u3087\u3063\u3068\u524d\u306b\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 Sequel\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u6642\u306f\u6b21\u306e\u3088\u3046\u306b transaction \u30e1\u30bd\u30c3\u30c9\u306b\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3057\u307e\u3059\u3002 require 'sequel' require 'logger' db = Sequel.connect('mysql2://user:passwd@localhost/test') db.loggers = [Logger.new($stdout)] db.transaction do db[:test].insert(id: 123) end I, [2017-03-12T22:34:51.946849 #27932] INFO -- : (0.00\u2026","height":"190","author_name":"tmtms","provider_url":"https://hatena.blog","url":"https://blog.tmtms.net/entry/2017/03/12/sequel-timeout","type":"rich","version":"1.0","published":"2017-03-12 23:19:16","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F2017%2F03%2F12%2Fsequel-timeout\" title=\"Sequel\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u3068COMMIT\u3055\u308c\u3066\u3057\u307e\u3046 - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"tmtms \u306e\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/tmtms/","provider_name":"Hatena Blog","image_url":null,"blog_url":"https://blog.tmtms.net/"}