From: Matt S Trout Date: Fri, 29 Jul 2005 16:19:38 +0000 (+0000) Subject: Added dbi_commit and db_rollback. NEEDS TESTS. X-Git-Tag: v0.03001~120 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a29644e176ee9494a1f0192e31790e20f40f5704;p=dbsrgits%2FDBIx-Class.git Added dbi_commit and db_rollback. NEEDS TESTS. --- diff --git a/lib/DBIx/Class/DB.pm b/lib/DBIx/Class/DB.pm index a54ba0d..afaf27b 100644 --- a/lib/DBIx/Class/DB.pm +++ b/lib/DBIx/Class/DB.pm @@ -50,6 +50,10 @@ sub connection { $class->_dbi_connect_info(\@info); } +sub dbi_commit { $_[0]->_get_dbh->commit; } + +sub dbi_rollback { $_[0]->_get_dbh->rollback; } + 1; =back