The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ArrayData::DBI - Get array data from DBI

VERSION

This document describes version 0.002 of ArrayData::DBI (from Perl distribution ArrayDataRoles-Standard), released on 2021-04-20.

SYNOPSIS

 use ArrayData::DBI;

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

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

DESCRIPTION

This is an ArrayData:: module to get array elements from a DBI query.

HOMEPAGE

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

SOURCE

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

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-ArrayDataRoles-Standard/issues

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

ArrayData

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 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.