++ed by:

3 non-PAUSE user(s).

dann

NAME

DBIx::Simple::DataSection - executes the sql in the __DATA__ section

SYNOPSIS

  # 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 = ?

DESCRIPTION

DBIx::Simple::DataSection is a simple DBIx::Simple wrapper module which allows you to execute the sql defined in __DATA__ section.

SOURCE AVAILABILITY

This source is in Github:

  http://github.com/dann/p5-dbix-simple-datasection

AUTHOR

dann <techmemo@gmail.com>

SEE ALSO

DBIx::Simple, Data::Section::Simple

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.