DBDataSourceServer

Methods Summary

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

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

Sample

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

getServerName()

Get the server name.

Returns String String server name

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;

Sample

datasources.db.example_data.getTableNames()

Last updated