DNS::BL::cmds::connect::dbi - Implement the DB connect command with DBI for DNS::BL
use DNS::BL::cmds::connect::dbi;
This module implements the connection to a DB backend where DNS::BL data will be stored. This backend is implemented through DBI.
DNS::BL
The following methods are implemented by this module:
->execute()
See DNS::BL::cmds for information on this method's purpose.
The connect command follows a syntax such as
connect dbi <args> ...
Note that the 'connect' token must be removed by the calling class, usually DNS::BL::cmds::connect. args are key - value pairs specifying different parameters as described below. Unknown parameters are reported as errors. The complete calling sequence is as
DNS::BL::cmds::connect
connect dbi [user username] [password pwd] dsn dsn-string bl list
Where each of the arguments mean the following:
The string that should be passed to DBI as the backend identifier.
The username for connecting to the server. If left unspecified, defaults to "dnsbl-ro".
The password for connecting as the given user. Defaults to a blank password.
The name of the list on which you want to operate. This is a local convention and every site has its own set of lists.
This class will be used and then, its execute() method invoked following the same protocol outlined in DNS::BL. Prior connect() information is to be removed by the calling class.
use
execute()
connect()
None by default.
$Log: dbi.pm,v $ Revision 1.4 2004/12/24 19:19:11 lem Passes all tests. Ready for real-world...
Revision 1.3 2004/12/24 12:59:25 lem Full functionality with some casual testing. Seems ready to be a RC.
Revision 1.2 2004/12/21 21:19:29 lem dsn is a mandatory argument
Revision 1.1 2004/12/21 21:17:38 lem Added boilerplate DBI connector.
Perl(1), DNS::BL, DBI.
Luis Muñoz, <luismunoz@cpan.org>
Copyright 2004 by Luis Muñoz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Muñoz,'. Assuming CP1252
To install DNS::BL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DNS::BL
CPAN shell
perl -MCPAN -e shell install DNS::BL
For more information on module installation, please visit the detailed CPAN module installation guide.