DBIx-XHTML_Table
view release on metacpan or search on metacpan
lib/DBIx/XHTML_Table.pm view on Meta::CPAN
__END__
=head1 NAME
DBIx::XHTML_Table - SQL query result set to XHTML table.
=head1 SYNOPSIS
use DBIx::XHTML_Table;
# database credentials - fill in the blanks
my ($data_source,$usr,$pass) = ();
my $table = DBIx::XHTML_Table->new($data_source,$usr,$pass);
$table->exec_query("
select foo from bar
where baz='qux'
order by foo
");
lib/DBIx/XHTML_Table.pm view on Meta::CPAN
=head1 GITHUB
https://github.com/jeffa/DBIx-XHTML_Table
=head1 CONSTRUCTOR
=over 4
=item B<style_1>
$obj_ref = new DBIx::XHTML_Table(@credentials[,$attribs])
Note - all optional arguments are denoted inside brackets.
The constructor will simply pass the credentials to the DBI::connect
method - read the DBI documentation as well as the docs for your
corresponding DBI driver module (DBD::Oracle, DBD::Sybase,
DBD::mysql, etc).
# MySQL example
my $table = DBIx::XHTML_Table->new(
'DBI:mysql:database:host', # datasource
'user', # user name
'password', # user password
) or die "couldn't connect to database";
DBIx::XHTML_Table
=================
Create HTML tables from SQL queries. [](https://metacpan.org/pod/DBIx::XHTML_Table) [](https://travis-ci....
Synopsis
--------
```perl
use DBIx::XHTML_Table;
# database credentials - fill in the 'blanks'
my @creds = ($data_source,$usr,$pass);
my $table = DBIx::XHTML_Table->new( @creds );
$table->exec_query(q(
select foo from bar
where baz='qux'
order by foo
));
print $table->output;
( run in 0.347 second using v1.01-cache-2.11-cpan-4d50c553e7e )