Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Missing a few methods

by tradez (Pilgrim)
on Mar 29, 2002 at 20:43 UTC ( #155320=note: print w/ replies, xml ) Need Help??


in reply to DBIx::Simple

Very good, very consitent design. But if people are going to be using this for web apps something like this might be needed

sub oracle_escape { my $self = shift; my ($ret_value) = @{{@_}}{qw/dirty/}; $ret_value =~ s/\'/\'\'/g; return $ret_value; }
and it looks like your presumes autocommit turned on. This is not normally the case, so in that case why not add these
sub commit { my $self = shift; $self->{'dbh'}->commit(); } sub rollback { my $self = shift; $self->{'dbh'}->rollback(); }
Just some food for thought. Please tell me if you put these in, would be cool to know I helped with something on CPAN ;).

Tradez
"Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)


Comment on Missing a few methods
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155320]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-11-28 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (191 votes), past polls