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

Read the "Dynamic Database Connections" section of the manual.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

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

Replies are listed 'Best First'.
Re: Re: Class::DBI, how to pass dynamic connection string to set_db
by Anonymous Monk on Sep 23, 2003 at 19:24 UTC
    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.