JSConnectionDefinition
Last updated
Last updated
A runtime data-source server connection, that can be accessed via "datasources.db.myserver.defineClientConnection()" at runtime. You can configure the Database Server to create connections for current client using properties of this JSConnectionDefinition. Things like username, password or connection properties can be adjusted.
Type | Name | Summary |
---|---|---|
Registers this JSConnectionDefinition to the server with the current configuration. After this call all connections to that database will use the configuration of this definition.
Returns: JSConnectionDefinition The this if it could be created, this will return null if there was a creating this definition (check logs)
Destoyes this JSConnectonDefintion, this unregisteres this on the server so it will not use this configuration anymore to create connections.
Returns: void
returns the password that was set by password(string)
Returns: String the password for this connection.
Sets the password to use for this client connection.
Parameters
String password ;
Returns: JSConnectionDefinition this
Set a key value pair that is used as a connection property for this connection definition
Parameters
Returns: JSConnectionDefinition this
returns the username that was set by username(string)
Returns: String the username for this connection.
Sets the username to use for this client connection.
Parameters
String username ;
Returns: JSConnectionDefinition this