X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FHandlesDeploy.pm;h=c931d42665781a75722357b7e4cb71854e3f0d1b;hb=1fcd4fe6717e0809422856c89673fc78b43174bb;hp=d5169a6934861674b261122493839a5300991381;hpb=734ace8a68a3d5e1329c455b7007d41c72e2c2d2;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm b/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm index d5169a6..c931d42 100644 --- a/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm +++ b/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm @@ -17,6 +17,8 @@ requires 'upgrade_single_step'; requires 'prepare_downgrade'; requires 'downgrade_single_step'; +requires 'txn_do'; + 1; # vim: ts=2 sw=2 expandtab @@ -108,6 +110,12 @@ Optionally return C<< [ $ddl, $upgrade_sql ] >> where C<$ddl> is the DDL for that version of the schema and C<$upgrade_sql> is the SQL that was run to upgrade the database. +=method txn_do + + $dh->txn_do(sub { ... }) + +Wrap the passed coderef in a transaction (if transactions are enabled.) + =head1 KNOWN IMPLEMENTATIONS =over