Top  | Previous | Next

system.db.setDatasourceMaxConnections

Description

Sets the Max Active and Max Idle parameters of a given database connection.

Syntax

system.db.setDatasourceMaxConnections(name, maxConnections)

Parameters

String name - The name of the database connection in Ignition.

int maxConnections - The new value for Max Active and Max Idle.

Returns

nothing

Scope

All

Examples

system.db.setDatasourceMaxConnections("MySQL", 20)