
DBIx::Roles::InlineArray - Flattens arrays passed as parameters to DBI calls into strings.

Recursively straightens array references into {,,}-strings. Useful for DBD implementations that cannot do that themselves

use DBIx::Roles qw(InlineArray);
my $dbh = DBI-> connect(
"dbi:Pg:dbname=template1",
"postgres",
"password",
);
$dbh-> do('INSERT INTO moo VALUES(?)', {}, [1,2,3]);

I've only used that module for PostgreSQL, so I've no idea if the array flattening will work on other databases.


Copyright (c) 2005 catpipe Systems ApS. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Dmitry Karasik <dk@catpipe.net>