DBIx::Connect::Any - Connect to DBI using DBIx::Connect::*
This document describes version 0.001 of DBIx::Connect::Any (from Perl distribution DBIx-Connect-Any), released on 2018-12-03.
Instead of:
use DBI; my $dbh = DBI->connect("dbi:mysql:database=mydb", ...);
you can now do:
use DBIx::Connect::Any; my $dbh = DBIx::Connect::Any->connect("dbi:mysql:database=mydb", ...);
and connecting will be handled by DBIx::Connect::MySQL.
This is a wrapper for DBIx::Connect::MySQL and other future DBIx::Connect::*.
Currently will pass to DBI::Connect::MySQL if $dsn starts with "DBI:mysql:". Otherwise will pass to DBI->connect.
$dsn
DBI->connect
Please visit the project's homepage at https://metacpan.org/release/DBIx-Connect-Any.
Source repository is at https://github.com/perlancar/perl-DBIx-Connect-Any.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=DBIx-Connect-Any
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 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.
To install DBIx::Connect::Any, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Connect::Any
CPAN shell
perl -MCPAN -e shell install DBIx::Connect::Any
For more information on module installation, please visit the detailed CPAN module installation guide.