public sqlExecute( sql as String, parameters as klyn.data.sql.SQLParameters = klyn.data.sql.SQLParameters() ) as Long
Executes one parameterized raw SQL mutation in the active transaction.
| Parameter | Description |
|---|---|
sql | Explicit SQL text for the configured dialect. |
parameters | Ordered prepared-statement values. |
Number of affected rows reported by the driver.
transaction = manager.beginTransaction()
affected = manager.sqlExecute(
"update T_Users set disabled = ? where id = ?",
SQLParameters(true, userId)
)
transaction.commit()