Back to index
Summary
Sets the database configuration in the server. If the server is in bootstrap mode, these changes take effect immediately, and the server will attempt to start. If the server is already running, these changes have no effect until the server is restarted.customDatabaseDialectStringoptionalClass name of the Hibernate dialect (advanced use only -- the server will choose an appropriate dialect base on databaseType). customDatabaseDriverStringoptionalClass name of the JDBC driver (advanced use only -- the server will choose an appropriate driver based on databaseType). customDatabaseUrlStringoptionalThe JDBC URL to use (advanced use only -- the server will compose an appropriate URL). If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>] .databaseNameStringoptionalThe database instance name. Defaults to commander if left out.databaseTypeStringoptionalThe database type. Defaults to builtin .Possible values: "builtin" , "mariadb" , "mysql" , "oracle" , "postgresql" , "sqlserver" hostNameStringoptionalThe domain name or IP address of the server machine corresponding to this resource. ignorePasskeyMismatchBooleanoptionalIf true, ignore a passkey fingerprint mismatch between the current passkey file and the database configuration, discarding stored credentials. ignoreServerMismatchBooleanoptionalIf true, ignore a host name mismatch between the current server and the database configuration. passwordStringoptionalThe password used to connect to the database. portIntegeroptionalPort number to use when connecting to the agent for this resource; defaults to server default. preserveSessionsBooleanoptionalIf true, preserve sessions when ignoring server host name mismatches. userNameStringoptionalThe user name used to connect to the database. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.setDatabaseConfiguration( /* optional arguments */ )