To meet my requirements (I dynamically create databases) the connection information can't be hard-coded. So if the function "getConnectInfo()" could be added, where this function returns the tuple (module,connect,no_conn) the default implementation of getConnectInfo() can read from the configuration file as Jeff has below. How then could I override the getConnectInfo?
Clark On Wed, Oct 24, 2001 at 02:55:50PM -0400, Jeff Johnson wrote: | We connect to multiple databases. Can this be modified so that each | database is given a data source name (DSN) and so getDbConnection takes | the DSN as an argument? The config could look something like: | | 'dataSources': { | 'billing': { | 'DbModule': 'PgSQL', | 'DbConnect': '::billing:me', | 'DbConnections': 5, | }, | 'inventory': { | 'DbModule': 'PgSQL', | 'DbConnect': '::inventory:me', | 'DbConnections': 5, | }, | }, | | And used like: | dbB = app.getDbConnection('billing') | dbI = app.getDbConnection('inventory') | | | -Jeff | | | | | | _______________________________________________ | Webware-discuss mailing list | [EMAIL PROTECTED] | https://lists.sourceforge.net/lists/listinfo/webware-discuss _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss