[Bast-commits] r4239 - DBIx-Class/0.08/trunk/lib/DBIx/Class

debolaz at dev.catalyst.perl.org debolaz at dev.catalyst.perl.org
Tue Mar 25 02:33:50 GMT 2008


Author: debolaz
Date: 2008-03-25 02:33:50 +0000 (Tue, 25 Mar 2008)
New Revision: 4239

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage.pm
Log:
And document the last changes


Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage.pm	2008-03-25 02:19:26 UTC (rev 4238)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage.pm	2008-03-25 02:33:50 UTC (rev 4239)
@@ -264,10 +264,10 @@
 
 =head2 svp_begin
 
-Arguments: $savepoint_name
+Arguments: $savepoint_name?
 
-Establishes a new savepoint of the specified name within the current
-transaction.
+Created a new savepoint using the name provided as argument. If no name
+is provided, a random name will be used.
 
 =cut
 
@@ -275,10 +275,11 @@
 
 =head2 svp_release
 
-Arguments: $savepoint_name
+Arguments: $savepoint_name?
 
-Destroy a savepoint, but keep the effects of the commands executed since
-it's creation.
+Release the savepoint provided as argument. If none is provided,
+release the savepoint created most recently. This will implicitly
+release all savepoints created after the one explicitly released as well.
 
 =cut
 
@@ -286,23 +287,16 @@
 
 =head2 svp_rollback
 
-Arguments: $savepoint_name
+Arguments: $savepoint_name?
 
-Rollback to the savepoint of the specified name.
+Rollback to the savepoint provided as argument. If none is provided,
+rollback to the savepoint created most recently. This will implicitly
+release all savepoints created after the savepoint we rollback to.
 
 =cut
 
 sub svp_rollback { die "Virtual method!" }
 
-=head2 svp_generate_name
-
-Generates a name for the next savepoint.  Defaults to 'savepoint_$count',
-where count is the number of current savepoints + 1.
-
-=cut
-
-sub svp_generate_name { die "Virtual method!" }
-
 =for comment
 
 =head2 txn_scope_guard




More information about the Bast-commits mailing list