LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Andrew Dunstan Date: Sat Jul 26 21:38:01 2008 Subject: Re: [svn:DBD-Pg] r11596 - in DBD-Pg/trunk: . lib/Bundle/DBD t
David E. Wheeler wrote: > On Jul 26, 2008, at 20:01, turnstep@cvs.perl.org wrote: > >> +=head3 B<ReadOnly> (boolean) >> + >> +$dbh->{ReadOnly} = 1; >> + >> +Specifies if the current database connection should be in read-only >> mode or not. >> +In this mode, changes that change the database are not allowed and >> will throw >> +an error. Note: this method will B<not> work if L</AutoCommit> is true. >> + > > Great idea, but is this a standard DBI attribute? If not, it should > probably be "pg_readonly" (or "pg_read_only"), no? > > How do you propose to enforce it given the ability of functions to have side efects? By rolling back every transaction? cheers andrew
| Navigate in group perl.dbd.pg at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |