[Gambas-user] how to handle amount of connections pool?
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Fri Jun 15 16:51:28 CEST 2018
i explain me bad, i mean the name of the new clas could be equal as the
name of the "connection name"
so, how can i emulate the creation of class like in php :
$this->config("database1")
so then i now have a new class named "datbase1"
$this->database1->query("select * from dual")
please help!
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
2018-06-15 9:33 GMT-04:00 PICCORO McKAY Lenz <mckaygerhard at gmail.com>:
> 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/16446b2f/attachment-0001.html>
More information about the User
mailing list