... | ... |
@@ -96,7 +96,7 @@ and implements the following new ones. |
96 | 96 |
); |
97 | 97 |
|
98 | 98 |
Create a new L<DBIx::Custom::MySQL> object and connect to the database. |
99 |
-This method override C<DBIx::Custom::connect()> method. |
|
99 |
+This method overrides C<DBIx::Custom::connect()> method. |
|
100 | 100 |
You can specify all attributes of L<DBIx::Custom> |
101 | 101 |
and L<DBIx::Custom::MySQL>, such as C<database>, C<host>, C<port>. |
102 | 102 |
|
... | ... |
@@ -22,41 +22,42 @@ DBIx::Custom::Query - Query |
22 | 22 |
=head2 C<sql> |
23 | 23 |
|
24 | 24 |
my $sql = $query->sql; |
25 |
- $query = $query->sql($sql); |
|
25 |
+ $query = $query->sql('select * from books where author = ?;'); |
|
26 | 26 |
|
27 | 27 |
SQL statement. |
28 | 28 |
|
29 | 29 |
=head2 C<columns> |
30 | 30 |
|
31 | 31 |
my $columns = $query->columns; |
32 |
- $query = $query->columns(\@columns); |
|
32 |
+ $query = $query->columns(['auhtor', 'title']); |
|
33 | 33 |
|
34 | 34 |
Column names. |
35 | 35 |
|
36 | 36 |
=head2 C<default_filter> |
37 | 37 |
|
38 | 38 |
my $default_filter = $query->default_filter; |
39 |
- $query = $query->default_filter($filter); |
|
39 |
+ $query = $query->default_filter('encode_utf8'); |
|
40 | 40 |
|
41 |
-Default filter for value binding. |
|
41 |
+Default filter when parameter binding is executed. |
|
42 | 42 |
|
43 | 43 |
=head2 C<filter> |
44 | 44 |
|
45 | 45 |
my $filter = $query->filter; |
46 |
- $query = $query->filter(\%filter); |
|
46 |
+ $query = $query->filter({author => 'encode_utf8', |
|
47 |
+ title => 'encode_utf8'}); |
|
47 | 48 |
|
48 |
-Filters for value binding |
|
49 |
+Filters when parameter binding is executed. |
|
50 |
+This overrides C<default_filter>. |
|
49 | 51 |
|
50 | 52 |
=head2 C<sth> |
51 | 53 |
|
52 | 54 |
my $sth = $query->sth; |
53 | 55 |
$query = $query->sth($sth); |
54 | 56 |
|
55 |
-Statement handle. |
|
57 |
+Statement handle of L<DBI> |
|
56 | 58 |
|
57 | 59 |
=head1 METHODS |
58 | 60 |
|
59 |
-This class is L<Object::Simple> subclass. |
|
60 |
-You can use all methods of L<Object::Simple>. |
|
61 |
+L<DBIx::Custom::Query> inherits all methods from L<Object::Simple>. |
|
61 | 62 |
|
62 | 63 |
=cut |
... | ... |
@@ -78,7 +78,7 @@ and implements the following new ones. |
78 | 78 |
my $dbi = DBIx::Custom::SQLite->connect(database => 'dbname'); |
79 | 79 |
|
80 | 80 |
Create a new L<DBIx::Custom::SQLite> object and connect to the database. |
81 |
-This method override C<DBIx::Custom::connect()> method. |
|
81 |
+This method overrides C<DBIx::Custom::connect()> method. |
|
82 | 82 |
You can specify all attributes of L<DBIx::Custom> |
83 | 83 |
and L<DBIx::Custom::SQLite>, such as C<database>. |
84 | 84 |
|