DBD::File::Roadmap - Planned Enhancements for DBD::File and pure Perl DBD's
Jens Rehsack - May 2010
| Use Case | Feature | Description |
|---|---|---|
| ๐ Lock tables | LOCK TABLE support | Using file system flock() for table-level locking |
| ๐พ Transaction support | Transparent transactions | Shadow tables via SQL::Statement temporary tables |
| ๐ Data Dictionary Persistence | Persistent metadata | Extend DBD::File to store and use table dictionaries |
| โ๏ธ SQL Engine selection | Engine selection at connect | Choose SQL engine via DBI->connect() attribute |
| ๐งช Testing | Automated test suite | More tests for API stability and compatibility |
| โก Performance | Indexes and cursors | Support for column indexes and cursors |
| ๐ Reliability | Duplicate/invalid table names | Prevent conflicting table paths and directory names |
| ๐ Extensibility | New DBD drivers | DBD::Sys, DBD::Dir, DBD::Join from common base |
This document gives a high level overview of the future of the DBD::File DBI driver and groundwork for pure Perl DBI drivers.
The planned enhancements cover features, testing, performance, reliability, extensibility and more.
There are some features missing we would like to add, but there is no time plan:
flock() support.CREATE TABLE ... statement is executed. This dictionary is preserved for some statement handle attribute fetches (as NULLABLE or PRECISION). It is planned to extend DBD::File to support data dictionaries to work on the tables in it. It is not planned to support one table in different dictionaries, but you can have several dictionaries in one directory.DBI->connect() with a special DBD::File attribute.Other points of view to the planned features (and more features for the SQL::Statement engine) are shown in SQL::Statement::Roadmap.
DBD::File and the dependent DBD::DBM requires a lot more automated tests covering API stability and compatibility with optional modules like SQL::Statement.
Several arguments for support of features like indexes on columns and cursors are made for DBD::CSV (which is a DBD::File based driver, too). Similar arguments could be made for DBD::DBM, DBD::AnyData, DBD::RAM or DBD::PO etc.
To improve the performance of the underlying SQL engines, a clean re-implementation seems to be required. Currently both engines are prematurely optimized and therefore it is not trivial to provide further optimization without the risk of breaking existing features.
Join the DBI developers IRC channel at <irc://irc.perl.org/dbi> to participate or post to the DBI Developers Mailing List.
DBD::File currently lacks the following points:
I (Jens Rehsack) have some (partially for example only) DBD's in mind:
# Example
# Let table 'lsof' being a table in DBD::Sys giving a list of open files using lsof utility
# Let table 'dir' being a table from DBD::Dir
$sth = $dbh->prepare( "select * from dir,lsof where path='/documents' and dir.entry = lsof.filename" )
$sth->execute(); # gives all open files in '/documents'
...
# Let table 'filesys' a DBD::Sys table of known file systems on current host
# Let table 'applications' a table of your Configuration Management Database
# where current applications (relocatable, with mountpoints for filesystems)
# are stored
$sth = dbh->prepare( "select * from applications,filesys where " .
"application.mountpoint = filesys.mountpoint and ".
"filesys.mounted is true" );
$sth->execute(); # gives all currently mounted applications on this host
Our priorities are focused on current issues. Initially many new test cases for DBD::File and DBD::DBM should be added to the DBI test suite. After that some additional documentation on how to use the DBD::File API will be provided.
Any additional priorities will come later and can be modified by (paying) users.
See <http://dbi.perl.org/contributing> for how you can help.
If your company has benefited from DBI, please consider if it could make a donation to The Perl Foundation "DBI Development" fund at <http://dbi.perl.org/donate> to secure future development.
Alternatively, if your company would benefit from a specific new DBI feature, please consider sponsoring its development through the options listed in the section "Commercial Support from the Author" on <http://dbi.perl.org/support/>.
Using such targeted financing allows you to contribute to DBI development and rapidly get something specific and directly valuable to you in return.
My company also offers annual support contracts for the DBI, which provide another way to support the DBI and get something specific in return. Contact me for details.
Thank you.
perl v5.34.0โ2026-06-22โDBD::File::Roadmap(3pm)
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-25 07:26 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)