Mar 24, 2024 21:48 Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients SampleSupported Clients
SmartClient
WebClient
NGClient
Methods Summary
JSConnectionDefinition
defineClientConnection()
Define a client connection for this server, you can configure this DB Server to create connections for this client that are configured by this JSConnection.
DBDataSourceServer
getDataModelCloneFrom()
Get the server where this server is a data model clone from.
String
getServerName()
Get the server name.
Array
getTableNames()
Returns an array with the names of all tables of this server.
Methods Details
defineClientConnection()
Define a client connection for this server, you can configure this DB Server to create connections for this client that are configured by this JSConnection.
All interaction with the database will go over a connection coming from a specific client pool with that is created for tihs client.
Things like username,password or connection properties can be adjusted.
var conncetionDefinition = datasources.db.example_data.defineClientConnection().setProperty('key', 'value').create();
getDataModelCloneFrom()
Get the server where this server is a data model clone from.
datasources.db.example_data.getDataModelCloneFrom().getServerName()
getServerName()
Get the server name.
datasources.db.example_data.getServerName() // returns 'example_data'
getTableNames()
Returns an array with the names of all tables of this server.
datasources.db.example_data.getTableNames()