Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Dec 20, 2010
1 parent e47fdf2 commit d8f0800
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 17 deletions.
20 changes: 10 additions & 10 deletions lib/DBIx/Kohada.pm
Expand Up @@ -308,7 +308,7 @@ DBIx::Kohada is yet another O/R mapper based on Active Record strategy.
=head1 WHY ANOTHER ONE?
I had using L<Class::DBI>, L<DBIx::Class>, and L<DBIx::Skinny>. But the three O/R Mappers are not enough for me.
I had using L<Class::DBI>, L<DBIx::Class>, and L<DBIx::Skinny>. But the three O/R mappers are not enough for me.
=head1 METHODS
Expand All @@ -330,7 +330,7 @@ Instance of L<DBIx::Kohada::Schema>. Required.
=item quote_char
B<quote_char> for quoting indentifiers. Optional.
B<quote_char> for quoting identifiers. Optional.
=item name_sep
Expand Down Expand Up @@ -360,7 +360,7 @@ The package name of the plugin. You can specify the "Pager" to load "DBIx::Kohad
=item \%opt
You can specify the fllowing options:
You can specify the following options:
=over 4
Expand Down Expand Up @@ -398,7 +398,7 @@ Create a new instance of L<SQL::Maker::Select> object from the settings.
SELECT rows by C<< $query >>. C<< $query >> is a instance of SQL::Maker::Select.
C<< $table_name >> is using to determin row class. If it's undef, each rows are bless to L<DBIx::Kohada::AnonRow>.
C<< $table_name >> is using to determine row class. If it's undef, each rows are bless to L<DBIx::Kohada::AnonRow>.
B<Return>: Instance of iterator in scalar context, array of rows in list context.
Expand All @@ -408,7 +408,7 @@ B<Return>: Instance of iterator in scalar context, array of rows in list context
SELECT rows by C<< $sql >>. C<< $sql >> is a string contains SQL.
C<< $table_name >> is using to determin row class. If it's undef, each rows are bless to L<DBIx::Kohada::AnonRow>.
C<< $table_name >> is using to determine row class. If it's undef, each rows are bless to L<DBIx::Kohada::AnonRow>.
B<Return>: Instance of iterator in scalar context, array of rows in list context.
Expand Down Expand Up @@ -452,7 +452,7 @@ Returns instance of L<DBIx::TransactionManager> for C<< $db->dbh >>.
=item my $txn = $db->txn_scope();
Make a scopeed session. You can nest the transaction.
Make a scoped session. You can nest the transaction.
For more details, see L<DBIx::TransactionManager>.
Expand Down Expand Up @@ -480,7 +480,7 @@ use L<Devel::KYTProf>.
=item How do you display pretty error message?
use DBI's callback functions. fore modetails, see eg/dbi-callback.pl.
use DBI's callback functions. for more details, see eg/dbi-callback.pl.
=item How do you load child classes automatically?
Expand All @@ -490,17 +490,17 @@ use L<Module::Find>.
my $schema = DBIx::Kohada::Schema->new();
$schema->register_row_class($_) for useall "MyApp::DB::Row";
=item How do you handle utf8 columns?
=item How do you handle UTF-8 columns?
You should use B<mysql_enable_utf8>, B<sqlite_unicode>, etc.
=item Why don't you implement 'find_or_create' method?
It is not atomic operation. It makes issue at somtime.
It is not atomic operation. It makes issue at sometime.
=item How do you inflate by rule like DBIx::Skinny?
You can use following snipet code.
You can use following snippet code.
for my $table ($schema->tables()) {
my $row_classs = $schema->table_name2row_class($table->name);
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Kohada/AnonRow.pm
Expand Up @@ -91,6 +91,6 @@ This method throws exception if the $column_name is not exists in the fetched da
Returns all loaded column data as a hash, containing raw values. To get
just one value for a particular column, use "get_column".
Returns: A hashref of columnname, value pairs.
Returns: A hashref of column name, value pairs.
=back
2 changes: 1 addition & 1 deletion lib/DBIx/Kohada/Plugin/Pager.pm
Expand Up @@ -131,7 +131,7 @@ The number of entries per page('rows'. you provided).
=item $pager->current_page()
Returns: fethced page number.
Returns: fetched page number.
=item $pager->has_next()
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Kohada/Plugin/Pager/MySQLFoundRows.pm
Expand Up @@ -61,7 +61,7 @@ DBIx::Kohada::Plugin::Pager::MySQLFoundRows - Paginate with SQL_CALC_FOUND_ROWS
=head1 DESCRIPTION
This is a helper class for pagination. This helper only supports B<MySQL>.
Since this plugin uses SQL_CALC_FOUND_ROWS for calcurate total entries.
Since this plugin uses SQL_CALC_FOUND_ROWS for calculate total entries.
=head1 METHODS
Expand Down
4 changes: 2 additions & 2 deletions lib/DBIx/Kohada/Row.pm
Expand Up @@ -226,7 +226,7 @@ DBIx::Kohada::Row - Row class
package main;
MyApp::DB::Row::User->new(row_data => {user_id => 1, name => 'john'}, kohada => $db, );
=head1 DESCRIPTIOON
=head1 DESCRIPTION
This is a row class for L<DBIx::Kohada>. This is a active record.
Expand Down Expand Up @@ -324,7 +324,7 @@ This method is internal use only.
=back
=head1 INSTANCE MTEHODS
=head1 INSTANCE METHODS
=over 4
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Kohada/Schema/Dumper.pm
Expand Up @@ -81,7 +81,7 @@ Database handle from DBI.
Coderef to convert table name to row class name.
The method is calling with forllowing form:
The method is calling with following form:
my $class_name = $code->($table_name);
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/Kohada/Schema/Loader.pm
Expand Up @@ -75,7 +75,7 @@ Database handle from DBI.
Coderef to convert table name to row class name.
The method is calling with forllowing form:
The method is calling with following form:
my $class_name = $code->($table_name);
Expand Down
14 changes: 14 additions & 0 deletions xt/01_podspell.t
Expand Up @@ -34,3 +34,17 @@ API
URL
URI
db
DBI
dbh
callback
dsn
Str
ActiveRecord
FAQ
DBIC
DBI
RDBMS
SQL
mappers
UTF
DBI's

0 comments on commit d8f0800

Please sign in to comment.