[Jifty-commit] r6983 - Jifty-DBI/trunk/t
Jifty commits
jifty-commit at lists.jifty.org
Mon May 11 17:17:48 EDT 2009
Author: ruz
Date: Mon May 11 17:17:48 2009
New Revision: 6983
Modified:
Jifty-DBI/trunk/t/utils.pl
Log:
* update pod
Modified: Jifty-DBI/trunk/t/utils.pl
==============================================================================
--- Jifty-DBI/trunk/t/utils.pl (original)
+++ Jifty-DBI/trunk/t/utils.pl Mon May 11 17:17:48 2009
@@ -34,7 +34,7 @@
our @available_drivers = grep { eval "require DBD::". $_ } @supported_drivers;
-=head1 functionS
+=head1 FUNCTIONS
=head2 get_handle
@@ -288,6 +288,24 @@
=head2 init_data
+Takes a class to get data from and the handle, calls C<init_data>
+method in the class, result is used to create new records of that
+class. First row is used for columns names.
+
+Example:
+
+ init_data('TestApp::User', $handle);
+
+ ...
+
+ package TestApp::User;
+ sub init_data { return (
+ ['name', 'email'],
+
+ ['ruz', 'ruz at localhost'],
+ ...
+ ) }
+
=cut
sub init_data
More information about the Jifty-commit
mailing list