![]() | |
#11
| |||
| |||
|
|
Ignoramus26246 wrote: I would like to know if Perl's DBI supports an attribute that would make a database handle read only. That is, I am looking for a way to make a handle read only so that all subsequent queries that seek to modify the database, would not proceed at all. This would be for mysql. A better way would be to make a user with only select priviliges, and no insert/update/drop privilige. |
#12
| |||
| |||
|
|
I would like to know if Perl's DBI supports an attribute that would make a database handle read only. |
#13
| |||
| |||
|
|
Rik Wasmus <luiheidsgoeroe (AT) hotmail (DOT) com> writes: Ignoramus26246 wrote: I would like to know if Perl's DBI supports an attribute that would make a database handle read only. That is, I am looking for a way to make a handle read only so that all subsequent queries that seek to modify the database, would not proceed at all. This would be for mysql. A better way would be to make a user with only select priviliges, and no insert/update/drop privilige. An even tighter method, if you're using a version of MySQL that supports stored procedures, is to use them to define an API for access to your data. Then you can give a user permission to execute your API procedures, and no low-level access at all. |
![]() |
| Thread Tools | |
| Display Modes | |
| |