NAME

TableData::DBI - Get table data from DBI

VERSION

This document describes version 0.007 of TableData::DBI (from Perl distribution TableDataRoles-Standard), released on 2021-04-11.

SYNOPSIS

use TableData::DBI;

my $table = TableData::DBI->new(
    sth           => $dbh->prepare("SELECT * FROM mytable"),
    row_count_sth => $dbh->prepare("SELECT COUNT(*) FROM table"),
);

# or
my $table = TableData::DBI->new(
    dsn           => "DBI:mysql:database=mydb",
    user          => "...",
    password      => "...",
    table         => "mytable",
);

DESCRIPTION

This is a TableData:: module to get list of words from a DBI query.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/TableDataRoles-Standard.

SOURCE

Source repository is at https://github.com/perlancar/perl-TablesRoles-Standard.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=TableDataRoles-Standard

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

DBI

TableData

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2020 by perlancar@cpan.org.

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