[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No direct access to names of database connections which have been setuo during design time
[Thread Prev] | [Thread Next]
- Subject: No direct access to names of database connections which have been setuo during design time
- From: Claus Dietrich <claus.dietrich@xxxxxxxxxx>
- Date: Tue, 18 Mar 2025 16:00:54 +0100
- To: Gambas MailingList <user@xxxxxxxxxxxxxxxxxxxxxx>
HiAs it is possible to define database connections during design time in the IDE (listed below project directory "Connections"), it would be useful to enumerate them by name. Unfortunately the static class Connections of the gb.db-component doesn't have such property.
I am suggesting to add a property to the Connections-class (.i.e. "List" as String[]), which allows to get a list of the names of all connections, which have been setup during design time below the project entry "Connections" resp. in the project directory ./connections.
With this it would be possible. i.e. to allocate a connection to a DataSource-control (propert Connection) by its name. For a better understandig please refer to the small project (download: https://magentacloud.de/s/7jbZD5Ywks5FNZB) created for the bug report 2986.
Best regards Claus