Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

DNS::BL::cmds::connect::dbi
Implement the DB connect command with DBI for DNS::BL

DNS::BL::cmds::connect::dbi - Implement the DB connect command with DBI for DNS::BL



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 the DNS::BL::cmds manpage 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


  connect 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 used and then, its execute() method invoked following the same protocol outlined in the DNS::BL manpage. Prior connect() 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

Perl(1), the DNS::BL manpage, DBI.


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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy