NAME
DNS::BL::cmds::connect::dbi - Implement the DB connect command with DBI for DNS::BL
SYNOPSIS
use DNS::BL::cmds::connect::dbi;
DESCRIPTION
This module implements the connection to a DB backend where DNS::BL
data will be stored. This backend is implemented through DBI.
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 asconnect dbi [user username] [password pwd] dsn dsn-string bl list
Where each of the arguments mean the following:
- dsn dsn-string
-
The string that should be passed to DBI as the backend identifier.
- user username
-
The username for connecting to the server. If left unspecified, defaults to "dnsbl-ro".
- password pwd
-
The password for connecting as the given user. Defaults to a blank password.
- bl list
-
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
use
d and then, itsexecute()
method invoked following the same protocol outlined in DNS::BL. Priorconnect()
information is to be removed by the calling class.
EXPORT
None by default.
HISTORY
$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.
SEE ALSO
AUTHOR
Luis Muñoz, <luismunoz@cpan.org>
COPYRIGHT AND LICENSE
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:
- Around line 490:
Non-ASCII character seen before =encoding in 'Muñoz,'. Assuming CP1252