DSNParser parses DSNs and creates connections to MySQL using DBI and DBD::mysql.
DSNParser | DSNParser parses DSNs and creates connections to MySQL using DBI and DBD::mysql. |
Variables | |
$have_dbi | |
Functions | |
new | |
prop | |
parse | Parse a DSN string like “h=host,P=3306”. |
parse_options | |
as_string | |
usage | |
get_cxn_params | |
fill_in_dsn |
sub new
%args | Arguments |
opts | Hashref of DSN options, usually created in OptionParser::get_specs() |
DSNParser object
sub parse
Parse a DSN string like “h=host,P=3306”.
$dsn | DSN string |
$prev | Optional DSN hashref with previous DSN values |
$defaults | Optional DSN hashref with default DSN values, used if a prop isn’t specified in $dsn or $prev |
A DSN hashref like:
{ D => 'database', F => undef, h => 'host', p => 'mysql-password', P => 3306, S => undef, t => 'table', u => 'mysql-user', A => undef, }
my $have_dbi
sub new
sub prop
Parse a DSN string like “h=host,P=3306”.
sub parse
sub parse_options
sub as_string
sub usage
sub get_cxn_params
sub fill_in_dsn
Read and parse options from the OPTIONS section of the POD.
sub get_specs