in reply to Re: What do people want from DB abstraction modules?
in thread What do people want from DB abstraction modules?
In DBI, to get a row of data using a primary key for the bind variable, I need to create a statement handler, bind a parameter, execute, and return some structure. 4 lines of codeOr one line: my @row = $dbh->selectrow_array($sql,{},$key);
Cross DB support. Ever need to join two tables aross do different databases?DBD::AnyData can make that pretty simple for some queries:
my $data = $dbh->selectrow_array( "SELECT $cols FROM IMPORT(?) JOIN IMPORT(?) ON(...", {}, $postgresql_sth, $mysql_sth );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What do people want from DB abstraction modules?
by exussum0 (Vicar) on Jan 05, 2006 at 20:03 UTC |