1Rose::DB::Generic(3)  User Contributed Perl Documentation Rose::DB::Generic(3)
2
3
4

NAME

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

SYNOPSIS

9         use Rose::DB;
10
11         Rose::DB->register_db(
12           dsn      => 'dbi:SomeDB:...', # unknown driver
13           username => 'devuser',
14           password => 'mysecret',
15         );
16
17         Rose::DB->default_domain('development');
18         Rose::DB->default_type('main');
19         ...
20
21         $db = Rose::DB->new; # $db is really a Rose::DB::Generic object
22         ...
23

DESCRIPTION

25       This is the subclass that Rose::DB blesses an object into (by default)
26       when the driver specified in the registry entry is has no class name
27       registered in the driver class map.
28
29       To maximize the chance that this class will work with an unsupported
30       database, do the following.
31
32       ·   Use a driver name that exactly matches the DBI "DBD::..." driver
33           name.   Even though Rose::DB drivers are case-insensitive, using
34           the exact spelling and letter case will allow this generic Rose::DB
35           driver to connect successfully.
36
37       ·   Specify the DSN explicitly rather than providing the pieces
38           separately (host, database, port, etc.) and then relying upon this
39           class to assemble them into DBI DSN.  This class will assemble a
40           DSN, but it may not be in the format that an unsupported driver
41           expects.
42
43       This class inherits from Rose::DB.  See the Rose::DB documentation for
44       information on the inherited methods.
45

AUTHOR

47       John C. Siracusa (siracusa@gmail.com)
48

LICENSE

50       Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This
51       program is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53
54
55
56perl v5.30.0                      2019-08-09              Rose::DB::Generic(3)
Impressum