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.
DBIx::Roles.
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>
To install DBIx::Roles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Roles
CPAN shell
perl -MCPAN -e shell install DBIx::Roles
For more information on module installation, please visit the detailed CPAN module installation guide.