db/update
Documentation
- source: db/update.ts
Overview
Classes
Update
execute()
Executes a parameterized SQL update statement (INSERT, UPDATE, or DELETE).
tsstatic execute(sql: string, parameters: any, datasourceName: string): number;
Parameter Type Description sqlstringThe SQL query to execute. parametersanyAn optional array of values (primitives, TypedQueryParameter or NamedQueryParameter objects) to replace '?' or :paramName placeholders. datasourceNamestringThe name of the database connection to use (optional). Returns
- Type:
number- Description: The number of rows affected by the statement.
