DBIx::TransactionManager ã®ç®çã¨ããã®ä½¿ç¨æ³ã«ã¤ã㦠ãã¯ãããããã¾ãã DBI ã§ã¯å½ããåã®ããã« $dbh->do('BEGIN') 㨠$dbh->do('COMMIT') ãã¤ããã°ãã©ã³ã¶ã¯ã·ã§ã³ãã¤ãããããã§ããããªã DBIx::TransactionManager ã®ãããªãã®ãå¿ è¦ã«ãªã£ãã®ã§ããããã ããã¯å¿è«ãDBI ã§ç´æ¥ transaction ãã¨ããã¤ããã¨åé¡ãçºçããã±ã¼ã¹ãåå¨ããããã§ãã ãã©ã³ã¶ã¯ã·ã§ã³ã¨ RAII ä¸çªããããã®ã¯ããã©ã³ã¶ã¯ã·ã§ã³ãä¸éå端ãªç¶æ ã«ãªã£ã¦ãã¾ããã¨ãé»æ¢ãããã¨ã§ãããã¨ãã°ã以ä¸ã®ãããªã±ã¼ã¹ã§ã¯ãããããªãã¨ã«ãªã£ã¦ãã¾ãã¾ãã my $dbh = DBI->connect(...); for (@stuff) { eval { $dbh->do("BEGIN"); $dbh
{{#tags}}- {{label}}
{{/tags}}