Perl Authors Upload Server wrote at Tue, 05 Aug 2003 01:17:52 +0200:

> 
> The following module was proposed for inclusion in the Module List:
> 
>   modid:       DBI::Simple
>   DSLIP:       bdpOg
>   description: Simple DBI connection and query execution.
>   userid:      SMCMURRAY (Sean McMurray)
>   chapterid:    7 (Database_Interfaces)
>   communities:
> 
>   similar:

There is already a
DBIx::Simple
module.

>   rationale:
> 
>     I named it 'Simple' because it reduces DBI to two calls: new and
>     execute. e.g.:
> 
>     $db = new DBI::Simple 'mysql.conf'; if (@rows =
>     $db->execute("select id from emp where name='Bill'")){ foreach
>     (@rows){ $db->execute("delete from emp where id=?", $_); } }
>     $db->execute("insert into emp(name) values('Bill')");
> 
>     I think this module belongs in the DBI namespace because it spans
>     DBD modules. The conf file is a small XML file that holds the name
>     of your DBD, and whatever parameters you wish to pass to that DBD.

No, if it would be a DBD module,
it should fit into the DBD::* namespace.
If it is an extension (also a reduce is an extension),
it should be under the DBIx::* namespace
unless it has a very strong relation to the DBI module, e.g. like
DBI::Shell


Greetings,
Janek

Reply via email to