NAME
HashDataRole::Source::DBI - Role to access elements from DBI
VERSION
This document describes version 0.001 of HashDataRole::Source::DBI (from Perl distribution HashDataRoles-Standard), released on 2021-05-21.
DESCRIPTION
This role expects hash data in DBI database table or query.
Note: get_item_at_pos()
and has_item_at_pos()
are slow (O(n) in worst case) because they iterate. Caching might be added in the future to speed this up.
ROLES MIXED IN
METHODS
new
Usage:
my $ary = $CLASS->new(%args);
Arguments:
iterate_sth
get_by_key_sth
row_count_sth
dbh
query
table
key_column
val_column
Either all the
*_sth
or "dbh" + "table" + "key_column" + "val_column" is required.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/HashDataRoles-Standard.
SOURCE
Source repository is at https://github.com/perlancar/perl-HashDataRoles-Standard.
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-HashDataRoles-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
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.