DBDataSourceServer
Last updated
Was this helpful?
Last updated
Was this helpful?
DBDataSourceServer
provides runtime access to a database server within Servoy applications, accessible via datasources.db.<server_name>
. This object enables interaction with database servers, including the ability to define client-specific connections, retrieve server names, and access tables within the server. For further details on configuring connections, refer to the documentation.
Define a client connection for this server, you can configure the Database Server to create connections for current client using properties of this JSConnectionDefinition.
Get the server where this server is a data model clone from.
Get the server name.
Returns an array with the names of all tables of this server.
Define a client connection for this server, you can configure the Database Server to create connections for current client using properties of this JSConnectionDefinition. All interaction with the database will go over a connection coming from a specific client pool with that is created for this client. Things like username, password or connection properties can be adjusted.
Returns: DBDataSourceServer server
Sample
Get the server where this server is a data model clone from.
Sample
Get the server name.
Sample
Returns an array with the names of all tables of this server.
Sample
Returns: DBDataSourceServer server
Returns: String server name
Returns: String[] server table names;