Database Parameters

This chapter describes what function to execute in order to establish a connection with the database.

To establish a connection with the database, you must retrieve the connection parameters defined in the project and in the database-specific settings. To do this, you must execute the requestDatabaseParametersSynchronously function, which returns data of the DatabaseParameters type. The requestDatabaseParametersSynchronously procedure runs at startup to retrieve all configuration settings.

// get database parameters: database address, user, password, database name and database-specific parameters
DatabaseParameters databaseParameters = configChannelHandler.requestDatabaseParametersSynchronously();