statement.run([namedParameters][, ...anonymousParameters])
namedParameters<Object> 一个可选对象,用于绑定命名参数。该对象的键用于配置映射。...anonymousParameters<null> | <number> | <bigint> | <string> | <Buffer> | <TypedArray> | <DataView> 零个或多个值,用于绑定到匿名参数。- 返回:<Object>
changes<number> | <bigint> 最近完成的INSERT、UPDATE或DELETE语句所修改、插入或删除的行数。该字段根据预处理语句的配置,可以是数字或BigInt。该属性是sqlite3_changes64()的结果。lastInsertRowid<number> | <bigint> 最近插入的 rowid。根据预处理语句的配置,该字段可以是数字或BigInt。此属性是sqlite3_last_insert_rowid()的结果。
此方法执行一个预处理语句,并返回一个总结结果更改的对象。预处理语句 参数已绑定 使用 namedParameters 和 anonymousParameters 中的值。
【This method executes a prepared statement and returns an object summarizing the
resulting changes. The prepared statement parameters are bound using the
values in namedParameters and anonymousParameters.】