[Gambas-user] how to handle amount of connections pool?

PICCORO McKAY Lenz mckaygerhard at gmail.com
Fri Jun 15 15:33:03 CEST 2018


hi to all.. i try to make a minimal framework to work in gambas as a
library/component to load..

i try to see how to handle best way to use connections by name.. just like
codeigniter framework does.. i mean..

in CI framework, the coder just only load the connection "by name" as
defined on settings in the "database.conf" file configuration..

i have a collection of all the configuartion files that inherits from
Settings and collection (a special class just like settings but handle all
the variables like collection but admit a null value)

basically how can i emulate the creation of class like in php :
 $newclass = $this->config("database1")

??

of course "newclass" its a connection gambas class


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180615/1f021195/attachment.html>


More information about the User mailing list