Acme-CPANModules-Import-CPANRatings-User-davidgaramond
view release on metacpan or search on metacpan
it Schema::Nested or something), but never got around to do it.
Thankfully somebody stepped up and did it! Keep up the good work,
will be looking forward to future releases (especially i'm hoping
for some subclassing mechanism, for better reuse of schemas). <br>
DBI::Mysqlsimple
I agree with the previous reviewer. IMO, overall this module is not
necessary. Plain DBI is actually simple enough for simple cases.
Maybe the author of Mysqlsimple did not realize this. Let's compare:
<br><br>* Retrieving a single row: <br> Mysqlsimple: my ($v1,$v2) =
$db->get_row("select v1,v2 from table"); <br> DBI: my
($v1, $v2) = $dbh->selectrow_array("select v1,v2 from
table"); <br><br>* Retrieving a single row (with params): <br>
Mysqlsimple: my ($v1,$v2) = $db->get_row("select v1,v2 from
table where cond1=? and cond2=?", [$cond1,$cond2]); <br> DBI:
my ($v1,$v2) = $db->selectrow_array("select v1,v2 from table
where cond1=? and cond2=?", {}, $cond1,$cond2); <br><br>*
Retrieving all rows with params: <br> Mysqlsimple: my $rows =
$db->get_rows(..., [$param1, $param2]); <br> DBI: my $rows =
$dbh->selectall_arrayref(..., {}, $param1, $param2); <br><br>*
do() with params: <br> Mysqlsimple: my $rows = $db->do(...,
[$param1, $param2]); <br> DBI: my $rows = $dbh->do(..., {},
$param1, $param2); <br><br>As you can see, the differences are
minimal. <br>
Rating: 2/10
Carp::Always
Author: FERREIRA <https://metacpan.org/author/FERREIRA>
devdata/davidgaramond view on Meta::CPAN
<img src="//cdn.perl.org/perlweb/cpanratings/images/stars-1.0.png" alt="*">
</h3>
<blockquote class="review_text">
I agree with the previous reviewer. IMO, overall this module is not necessary. Plain DBI is actually simple enough for simple cases. Maybe the author of Mysqlsimple did not realize this. Let's compare:
<br><br>* Retrieving a single row:
<br>
Mysqlsimple: my ($v1,$v2) = $db->get_row("select v1,v2 from table");
<br>
DBI: my ($v1, $v2) = $dbh->selectrow_array("select v1,v2 from table");
<br><br>* Retrieving a single row (with params):
<br>
Mysqlsimple: my ($v1,$v2) = $db->get_row("select v1,v2 from table where cond1=? and cond2=?", [$cond1,$cond2]);
<br>
DBI: my ($v1,$v2) = $db->selectrow_array("select v1,v2 from table where cond1=? and cond2=?", {}, $cond1,$cond2);
<br><br>* Retrieving all rows with params:
<br>
Mysqlsimple: my $rows = $db->get_rows(..., [$param1, $param2]);
<br>
DBI: my $rows = $dbh->selectall_arrayref(..., {}, $param1, $param2);
<br><br>* do() with params:
<br>
Mysqlsimple: my $rows = $db->do(..., [$param1, $param2]);
<br>
DBI: my $rows = $dbh->do(..., {}, $param1, $param2);
<br><br>As you can see, the differences are minimal.
<br>
</blockquote>
<div class="review_footer">
<p class="review_attribution">
<a href="/user/davidgaramond">David Garamond</a> - 2008-05-03T20:46:28
(<a href="/dist/DBI-Mysqlsimple#4106">permalink</a>)
lib/Acme/CPANModules/Import/CPANRatings/User/davidgaramond.pm view on Meta::CPAN
package Acme::CPANModules::Import::CPANRatings::User::davidgaramond;
use strict;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-10-29'; # DATE
our $DIST = 'Acme-CPANModules-Import-CPANRatings-User-davidgaramond'; # DIST
our $VERSION = '0.002'; # VERSION
our $LIST = {description=>"This list is generated by scraping CPANRatings (cpanratings.perl.org) user page.",entries=>[{description=>"\nOk, it's not 2004 anymore, I suggest we retire or start to deprecate this module? This module now requires Perl 5....
1;
# ABSTRACT: List of modules mentioned by CPANRatings user davidgaramond
__END__
=pod
=encoding UTF-8
lib/Acme/CPANModules/Import/CPANRatings/User/davidgaramond.pm view on Meta::CPAN
I've been mulling over writing this kind of module (planning to call it Schema::Nested or something), but never got around to do it. Thankfully somebody stepped up and did it! Keep up the good work, will be looking forward to future releases (especia...
<br>
=item L<DBI::Mysqlsimple>
I agree with the previous reviewer. IMO, overall this module is not necessary. Plain DBI is actually simple enough for simple cases. Maybe the author of Mysqlsimple did not realize this. Let's compare:
<br><br>* Retrieving a single row:
<br>
Mysqlsimple: my ($v1,$v2) = $db->get_row("select v1,v2 from table");
<br>
DBI: my ($v1, $v2) = $dbh->selectrow_array("select v1,v2 from table");
<br><br>* Retrieving a single row (with params):
<br>
Mysqlsimple: my ($v1,$v2) = $db->get_row("select v1,v2 from table where cond1=? and cond2=?", [$cond1,$cond2]);
<br>
DBI: my ($v1,$v2) = $db->selectrow_array("select v1,v2 from table where cond1=? and cond2=?", {}, $cond1,$cond2);
<br><br>* Retrieving all rows with params:
<br>
Mysqlsimple: my $rows = $db->get_rows(..., [$param1, $param2]);
<br>
DBI: my $rows = $dbh->selectall_arrayref(..., {}, $param1, $param2);
<br><br>* do() with params:
<br>
Mysqlsimple: my $rows = $db->do(..., [$param1, $param2]);
<br>
DBI: my $rows = $dbh->do(..., {}, $param1, $param2);
<br><br>As you can see, the differences are minimal.
<br>
Rating: 2/10
( run in 1.054 second using v1.01-cache-2.11-cpan-49f99fa48dc )