GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ROSE::DB::GENERIC (3)

.ds Aq ’

NAME

Rose::DB::Generic - Generic driver class for Rose::DB.

CONTENTS

SYNOPSIS



  use Rose::DB;

  Rose::DB->register_db(
    dsn      => dbi:SomeDB:..., # unknown driver
    username => devuser,
    password => mysecret,
  );

  Rose::DB->default_domain(development);
  Rose::DB->default_type(main);
  ...

  $db = Rose::DB->new; # $db is really a Rose::DB::Generic object
  ...



DESCRIPTION

This is the subclass that Rose::DB blesses an object into (by default) when the driver specified in the registry entry is has no class name registered in the driver class map.

To maximize the chance that this class will work with an unsupported database, do the following.
o Use a driver name that exactly matches the DBI DBD::... driver name. Even though Rose::DB drivers are case-insensitive, using the exact spelling and letter case will allow this generic Rose::DB driver to connect successfully.
o Specify the DSN explicitly rather than providing the pieces separately (host, database, port, etc.) and then relying upon this class to assemble them into DBI DSN. This class will assemble a DSN, but it may not be in the format that an unsupported driver expects.
This class inherits from Rose::DB. See the Rose::DB documentation for information on the inherited methods.

AUTHOR

John C. Siracusa (siracusa@gmail.com)

LICENSE

Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ROSE::DB::GENERIC (3) 2015-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.