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


DBIx-Roles documentation  | view source Contained in the DBIx-Roles distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

SYNOPSIS

Top

     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

Top

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

SEE ALSO

Top

DBIx::Roles.

COPYRIGHT

Top

AUTHOR

Top

Dmitry Karasik <dk@catpipe.net>


DBIx-Roles documentation  | view source Contained in the DBIx-Roles distribution.