aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBIx-Safe
Commit message (Collapse)AuthorAgeFilesLines
* - Support STAGEDIRSunpoet Po-Chuan Hsieh2013-09-302-3/+1
| | | | Notes: svn path=/head/; revision=328822
* Add NO_STAGE all over the place in preparation for the staging support (cat: ↵Baptiste Daroussin2013-09-201-0/+1
| | | | | | | databases) Notes: svn path=/head/; revision=327717
* - Cleanup Makefile headerSunpoet Po-Chuan Hsieh2013-08-211-5/+1
| | | | Notes: svn path=/head/; revision=325163
* - Use RUN_DEPENDS:=BUILD_DEPENDSSunpoet Po-Chuan Hsieh2013-08-211-2/+1
| | | | | | | | - Add BUILD_DEPENDS - Cosmetic change Notes: svn path=/head/; revision=325148
* - Convert to new perl frameworkSunpoet Po-Chuan Hsieh2013-08-211-1/+2
| | | | Notes: svn path=/head/; revision=325134
* - Add p5-DBIx-Safe 1.2.5Sunpoet Po-Chuan Hsieh2011-12-054-0/+58
The purpose of DBIx::Safe is to give controlled, limited access to an application, rather than simply passing it a raw database handle through DBI. DBIx::Safe acts as a wrapper to the database, by only allowing through the commands you tell it to. It filters all things related to the database handle - methods and attributes. The typical usage is for your application to create a database handle via a normal DBI call to new(), then pass that to DBIx::Safe->new(), which will return you a DBIx::Safe object. After specifying exactly what is and what is not allowed, you can pass the object to the untrusted application. The object will act very similar to a DBI database handle, and in most cases can be used interchangeably. By default, nothing is allowed to run at all. There are many things you can control. You can specify which SQL commands are allowed, by indicating the first word in the SQL statement (e.g. 'SELECT'). You can specify which database methods are allowed to run (e.g. 'ping'). You can specify a regular expression that allows matching SQL statements to run (e.g. 'qr{SET TIMEZONE}'). You can specify a regular expression that is NOT allowed to run (e.g. qr(UPDATE xxx}). Finally, you can indicate which database attributes are allowed to be read and changed (e.g. 'PrintError'). For all of the above, there are matching methods to remove them as well. WWW: http://search.cpan.org/dist/DBIx-Safe/ Feature safe: yes Notes: svn path=/head/; revision=286921