Rose::DB::Object::QueryBuilder 0.764
Sponsored Links
Rose::DB::Object::QueryBuilder 0.764 Ranking & Summary
File size:
0.47 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
845
Date added:
2007-07-03
Publisher:
John C. Siracusa
Rose::DB::Object::QueryBuilder 0.764 description
Rose::DB::Object::QueryBuilder is a Perl module that can build SQL queries on behalf of Rose::DB::Object::Manager.
SYNOPSIS
use Rose::DB::Object::QueryBuilder qw(build_select);
# Build simple query
$sql = build_select
(
dbh => $dbh,
select => COUNT(*),
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1);
$sth = $dbh->prepare($sql);
$dbh->execute;
$count = $sth->fetchrow_array;
...
# Return query with placeholders, plus bind values
($sql, $bind) = build_select
(
dbh => $dbh,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1,
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
while($row = $sth->fetchrow_hashref) { ... }
...
# Coerce query values into the right format
($sql, $bind) = build_select
(
db => $db,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
classes => { articles => Article },
query =>
[
type => news,
date => { lt => now },
date => { gt => DateTime->new(...) },
],
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
SYNOPSIS
use Rose::DB::Object::QueryBuilder qw(build_select);
# Build simple query
$sql = build_select
(
dbh => $dbh,
select => COUNT(*),
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1);
$sth = $dbh->prepare($sql);
$dbh->execute;
$count = $sth->fetchrow_array;
...
# Return query with placeholders, plus bind values
($sql, $bind) = build_select
(
dbh => $dbh,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
query =>
[
category => [ sports, science ],
type => news,
title => { like => [ %million%,
%resident% ] },
],
query_is_sql => 1,
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
while($row = $sth->fetchrow_hashref) { ... }
...
# Coerce query values into the right format
($sql, $bind) = build_select
(
db => $db,
tables => [ articles ],
columns => { articles => [ qw(id category type title date) ] },
classes => { articles => Article },
query =>
[
type => news,
date => { lt => now },
date => { gt => DateTime->new(...) },
],
sort_by => title DESC, category,
limit => 5);
$sth = $dbh->prepare($sql);
$dbh->execute(@$bind);
Rose::DB::Object::QueryBuilder 0.764 Screenshot
Advertisements
Rose::DB::Object::QueryBuilder 0.764 Keywords
DB
QueryBuilder
SQL
QueryBuilder 0.764
Manager
SQL Queries
Perl module
Can Build
Build SQL
build
query
articles
title
category
type
Rose::DB::Object::QueryBuilder
Bookmark Rose::DB::Object::QueryBuilder 0.764
Rose::DB::Object::QueryBuilder 0.764 Copyright
WareSeeker periodically updates pricing and software information of Rose::DB::Object::QueryBuilder 0.764 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Rose::DB::Object::QueryBuilder 0.764 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Rose::DB::Object::Tutorial is a guided tour of the basics of Rose::DB::Object. Free Download
Rose::DB::Object::Helpers is a mix-in class containing convenience methods for Rose::DB::Object. Free Download
Practical Query Analyzer produces HTML reports on query statistics. Free Download
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius. Free Download
Text::Query::BuildSQL is a base class for SQL query builders. Free Download
Rose::Object::MakeMethods::Generic is a Perl module that can create simple object methods. Free Download
File::Type::Builder is Perl module to parse mime-magic and generate code. Free Download
Rose::DateTime is a Perl module with DateTime helper functions and objects. Free Download
Latest Software
Popular Software
Favourite Software