DBIx::Simple::DataSection - executes the sql in the __DATA__ section
# Create db instance use DBIx::Simple::DataSection; my $dbh = ... my $db = DBIx::Simple::DataSection->connect($dbh) # Execute the query which is defined in __DATA__ section my $foo = ... my $bar = ... my $rs = $db->query_by_sql('select.sql', $foo, $bar) or die $db->error; __DATA__ @@ select.sql SELECT FROM foo WHERE foo = ? OR bar = ?
DBIx::Simple::DataSection is a simple DBIx::Simple wrapper module which allows you to execute the sql defined in __DATA__ section.
This source is in Github:
http://github.com/dann/p5-dbix-simple-datasection
dann <techmemo@gmail.com>
DBIx::Simple, Data::Section::Simple
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::Simple::DataSection, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Simple::DataSection
CPAN shell
perl -MCPAN -e shell install DBIx::Simple::DataSection
For more information on module installation, please visit the detailed CPAN module installation guide.