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);

# Set attributes
$query->bind_filter($dbi->filters->{default_bind_filter});
$query->no_bind_filters('title', 'author');

$query->fetch_filter($dbi->filters->{default_fetch_filter});
$query->no_fetch_filters('title', 'author');

Accessors

sth

Set and get statement handle

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

sql

Set and get SQL

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

bind_filter

Set and get bind filter

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

no_bind_filters

Set and get keys of no filtering

$query           = $query->no_bind_filters($no_filters);
$no_bind_filters = $query->no_bind_filters;

fetch_filter

Set and get fetch filter

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

no_fetch_filters

Set and get keys of no filtering

$query            = $query->no_fetch_filters($no_filters);
$no_fetch_filters = $query->no_fetch_filters;

key_infos

Set and get key informations

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

Methods

new

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

AUTHOR

Yuki Kimoto, <kimoto.yuki at gmail.com>

Github http://github.com/yuki-kimoto

COPYRIGHT & LICENSE

Copyright 2009 Yuki Kimoto, all rights reserved.

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