DBIx::TransactionManager 使ã£ã¦ãã¹ããããã©ã³ã¶ã¯ã·ã§ã³ãçºè¡ãã¦ãå ¨ã¦ã®ãã©ã³ã¶ã¯ã·ã§ã³ããã¾ãè¡ã£ãæã ãã»ãã»ããããã ã ãã©ããããæå¾ã«ã¾ã¨ãã¦ããã¨ããæ¹æ³ã ã¨æ å ±ãæã¡åããªãã¨ãããªãã£ãããã¦ããã©ããããé©å®ãã©ã³ã¶ã¯ã·ã§ã³åä½ã§ããããæãã ã£ãã®ã§ DBIx::TransactionManager::EndHook ã¨ããã®ãä½ãã¾ããã my $txm1 = $tm->txn_scope; $dbh->do('...'); $tm->add_end_hook(sub { # do something }); my $txm2 = $tm->txn_scope; $dbh->do('...'); $tm->add_end_hook(sub { # do something }); $txm2->commit; $txm1->commit;
{{#tags}}- {{label}}
{{/tags}}