NAME

DBIx::Custom::Query - DBIx::Custom query

SYNOPSIS

# New
my $query = DBIx::Custom::Query->new;

# Create by using create_query
my $query = DBIx::Custom->create_query($template);

ATTRIBUTES

sth

Statement handle

$query = $query->sth($sth);
$sth   = $query->sth;

sql

SQL

$query = $query->sql($sql);
$sql   = $query->sql;

default_filter

Filter excuted when value is bind

$query          = $query->default_filter($default_filter);
$default_filter = $query->default_filter;

filter

Filter excuted when value is bind

$query  = $query->filter($filter);
$filter = $query->filter;

columns

Key informations

$query   = $query->columns($columns);
$columns = $query->columns;

METHODS

This class is Object::Simple subclass. You can use all methods of Object::Simple

new

my $query = DBIx::Custom::Query->new;