NAME

DBIx::Simple::Interpol - monkey-patch DBIx::Simple to use SQL::Interpol

VERSION

version 1.005

SYNOPSIS

  use DBIx::Simple::Interpol;
  # ...
  my $rows = $db->iquery( '
      SELECT title
      FROM threads
      WHERE date >', \$x, '
      AND subject IN', \@subjects, '
  ' )->arrays;

DESCRIPTION

The recommended way to use SQL::Interpol is via its DBIx::Simple integration, which provides an excellent alternative to plain DBI access.

Ordinarily, the iquery method in DBIx::Simple integrates SQL::Interp. But by loading this module instead (or after) DBIx::Simple, the iquery method will be patched to use SQL::Interpol instead.

This is all there is to this module.

AUTHOR

Aristotle Pagaltzis <pagaltzis@gmx.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Aristotle Pagaltzis.

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