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.
Integer maxConnections
-
Returns
nothing
-
Scope
All
Code Examples
Code Snippet
#Example 1: Enable a connection
system.db.setDatasourceMaxConnections(
"MySQL"
,
20
)