Child pages
  • DBDataSourceServer
Skip to end of metadata
Go to start of metadata

Refresh page Mar 24, 2024 21:48

Supported 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.

Returns

JSConnectionDefinition DBDataSourceServer server

Supported Clients

SmartClient,WebClient,NGClient

Sample

var conncetionDefinition = datasources.db.example_data.defineClientConnection().setProperty('key', 'value').create();

getDataModelCloneFrom()

Get the server where this server is a data model clone from.

Returns

DBDataSourceServer DBDataSourceServer server

Supported Clients

SmartClient,WebClient,NGClient

Sample

datasources.db.example_data.getDataModelCloneFrom().getServerName()

getServerName()

Get the server name.

Returns

String String server name

Supported Clients

SmartClient,WebClient,NGClient

Sample

datasources.db.example_data.getServerName() // returns 'example_data'

getTableNames()

Returns an array with the names of all tables of this server.

Returns

Array String[] server table names;

Supported Clients

SmartClient,WebClient,NGClient

Sample

datasources.db.example_data.getTableNames()

  • No labels