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


NAME

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


DESCRIPTION

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


SYNOPSIS

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


NOTES

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


SEE ALSO

the DBIx::Roles manpage.


COPYRIGHT

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.


AUTHOR

Dmitry Karasik <dk@catpipe.net>