DBIx::SQLCrosstab::Format 1.17
Sponsored Links
DBIx::SQLCrosstab::Format 1.17 Ranking & Summary
File size:
0.065 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
7016
Date added:
2006-09-27
Publisher:
DBIx::SQLCrosstab::Format Team
Publisher URL:
http://search.cpan.org/~g
DBIx::SQLCrosstab::Format 1.17 description
DBIx::SQLCrosstab::Format is a Perl module with formats results created by DBIx::SQLCrosstab.
SYNOPSIS
use DBIx::SQLCrosstab::Format;
my $dbh=DBI->connect("dbi:driver:database"
"user","password", {RaiseError=>1})
or die "error in connection $DBI::errstrn";
my $params = {
dbh => $dbh,
op => [ [ SUM, salary] ],
from => person INNER JOIN departments USING (dept_id),
rows => [
{ col => country},
],
cols => [
{
id => dept,
value =>department,
from =>departments
},
{
id => gender, from => person
}
]
};
my $xtab = DBIx::SQLCrosstab::Format->new($params)
or die "error in creation ($DBIx::SQLCrosstab::errstr)n";
my $query = $xtab->get_query("#")
or die "error in query building $DBIx::SQLCrosstab::errstrn";
if ( $xtab->get_recs) {
# do something with records, or use a built-in function
# to produce a well formatted HTML table
#
print $xtab->as_html;
print $xtab->as_xml;
print $xtab->as_yaml;
print $xtab->as_csv(header);
$xtab->as_xls("xtab.xls");
use Data::Dumper;
print Data::Dumper->Dump ([ $xtab->as_perl_struct(hoh)],
[hoh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(losh)],
[losh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(loh)],
[loh]);
}
else {
die "error in execution $DBIx::SQLCrosstab::errstrn";
}
DBIx::SQLCrosstab::Format is a class descending from DBIx::SQLCrosstab. Being a child class, it inherits its parent methods and can be used in the same way.
In addition, it provides methods to produce formatted output.
SYNOPSIS
use DBIx::SQLCrosstab::Format;
my $dbh=DBI->connect("dbi:driver:database"
"user","password", {RaiseError=>1})
or die "error in connection $DBI::errstrn";
my $params = {
dbh => $dbh,
op => [ [ SUM, salary] ],
from => person INNER JOIN departments USING (dept_id),
rows => [
{ col => country},
],
cols => [
{
id => dept,
value =>department,
from =>departments
},
{
id => gender, from => person
}
]
};
my $xtab = DBIx::SQLCrosstab::Format->new($params)
or die "error in creation ($DBIx::SQLCrosstab::errstr)n";
my $query = $xtab->get_query("#")
or die "error in query building $DBIx::SQLCrosstab::errstrn";
if ( $xtab->get_recs) {
# do something with records, or use a built-in function
# to produce a well formatted HTML table
#
print $xtab->as_html;
print $xtab->as_xml;
print $xtab->as_yaml;
print $xtab->as_csv(header);
$xtab->as_xls("xtab.xls");
use Data::Dumper;
print Data::Dumper->Dump ([ $xtab->as_perl_struct(hoh)],
[hoh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(losh)],
[losh]);
print Data::Dumper->Dump ([ $xtab->as_perl_struct(loh)],
[loh]);
}
else {
die "error in execution $DBIx::SQLCrosstab::errstrn";
}
DBIx::SQLCrosstab::Format is a class descending from DBIx::SQLCrosstab. Being a child class, it inherits its parent methods and can be used in the same way.
In addition, it provides methods to produce formatted output.
DBIx::SQLCrosstab::Format 1.17 Screenshot
Sponsored Links
DBIx::SQLCrosstab::Format 1.17 Keywords
DBIx
SQLCrosstab
Format 1.17
SQLCrosstab.
DBIxSQLCrosstabFormat
Perl module
Created By
Perl
print
results
module
formats
created
DBIx::SQLCrosstab::Format 1.17
Libraries
Programming
Bookmark DBIx::SQLCrosstab::Format 1.17
DBIx::SQLCrosstab::Format 1.17 Copyright
WareSeeker periodically updates pricing and software information of DBIx::SQLCrosstab::Format 1.17 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 DBIx::SQLCrosstab::Format 1.17 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
DBIx::SQLCrosstab::Format 1.17 Related Software
DBIx::Simple provides a simplified interface to DBI, Perls powerful database module.
DBIx::XHTML_Table is Perl module for SQL query result set to XML-based HTML table.
DBIx::OO::Tree is a Perl module to manipulate hierarchical data using the "nested sets" model.
DBIx::DBStag is a Perl module for Relational Database to Hierarchical (Stag/XML) Mapping.
DBIx::Recordset::Playground is a Perl module with working sample usages of DBIx::Recordset.
DBIx::Timeout is a Perl module that provides a safe method of timing out DBI requests.
DBIx::XMLServer is a Perl module to serve data as XML in response to HTTP requests.
DBIx::Class::FormTools is a utility module for building forms with multiple related DBIx::Class objects.
DBIx::SQLCrosstab Perl module creates a server-side cross tabulation from a database.
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD