|Subject:||Supporting database as an alias for dbname in DSN|
The documentation for DBI recommends that DBD::* modules should understand the parameter database= in a DSN, but DBD::SQLite requires dbname=. Quoting from DBI's docs: It is recommended that drivers support the ODBC style, shown in the last example above. It is also recommended that that they support the three common names 'host', 'port', and 'database' (plus 'db' as an alias for database). This simplifies automatic construction of basic DSNs: "dbi:$driver:database=$db;host=$host;port=$port". Drivers should aim to 'do something reasonable' when given a DSN in this form [...] DBD::Pg also expects dbname, but recognises database (and db) also - it would be great if DBD::SQLite would do the same. I'd be happy to provide a patch if requested, although I expect it'd be trivial to implement - the question is more whether you consider it a good idea.