Hi,

I have a module which is like DBIx::Factory except instead of taking a
config file to load one type of DBI object, it has 1 config file that
loads a multitude of DBI objects.


So I can get my databases like such:
my $dbh = DBIx::Generator->get_dbh( db => 'postgres1' );

Or:
my $dbh = DBIx::Generator->get_dbh(
  db => 'postgres1',
  config => '/config/file',
  database => 'cool_stuff',
);


Can I get a recommendation on if this would be a good module to
publish and if the name looks okay?  I searched for modules that
replicate the same thing but didn't find any.


Below is an example of a config file with 3 connector types described in it:
[postgres1]
user: username
pass: password
dsn: dbi:Pg
ip: localhost
default_db: contacts
attr:
  RaiseError: 0
  PrintError: 1

[mysql1]
user: username
pass: password
dsn: dbi:mysql
ip: 192.168.1.110
default_db: customer
attr:
  RaiseError: 0
  PrintError: 1

[mysql2]
user: username
pass: password
dsn: dbi:mysql
ip: localhost
default_db: finance
attr:
  RaiseError: 0
  PrintError: 1

Reply via email to