Skip to content

ap/DBIx-Simple-Concrete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

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

SYNOPSIS

use DBIx::Simple::Concrete;
# ...
my $rows = $db->cquery( '
    SELECT title
    FROM threads
    WHERE date >', \$date, '
    AND', { subject => \@subjects }, '
' )->arrays;

DESCRIPTION

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

But by loading this module instead (or after) DBIx::Simple, a cquery method will be added to it which integrates SQL::Concrete just the same way as its built-in iquery method integrates SQL::Interp.

This is all there is to this module.