in reply to Re: Class::DBI, how to pass dynamic connection string to set_db
in thread Class::DBI, how to pass dynamic connection string to set_db

Could you please explain the doc, as shown below

Dynamic Database Connections

It is sometimes desirable to generate your database connection information dynamically, for example, to allow multiple databases with the same schema to not have to duplicate an entire class hierarchy.

The preferred method for doing this is to supply your own db_Main() method rather than calling set_db(). This method should return a valid database handle.

Probably a example? Note however that this is class data, and that changing it may have unexpected behaviour for instances of the class already in existence.

  • Comment on Re: Re: Class::DBI, how to pass dynamic connection string to set_db