statement.run([namedParameters][, ...anonymousParameters])
-
namedParameters
<Object> 用于绑定命名参数的可选对象。此对象的键用于配置映射。¥
namedParameters
<Object> An optional object used to bind named parameters. The keys of this object are used to configure the mapping. -
...anonymousParameters
<null> | <number> | <bigint> | <string> | <Buffer> | <TypedArray> | <DataView> 零个或多个值绑定到匿名参数。¥
...anonymousParameters
<null> | <number> | <bigint> | <string> | <Buffer> | <TypedArray> | <DataView> Zero or more values to bind to anonymous parameters. -
返回:<Object>
¥Returns: <Object>
-
changes
:<number> | <bigint> 最近完成的INSERT
、UPDATE
或DELETE
语句修改、插入或删除的行数。此字段是数字或BigInt
,具体取决于准备好的语句的配置。此属性是sqlite3_changes64()
的结果。¥
changes
: <number> | <bigint> The number of rows modified, inserted, or deleted by the most recently completedINSERT
,UPDATE
, orDELETE
statement. This field is either a number or aBigInt
depending on the prepared statement's configuration. This property is the result ofsqlite3_changes64()
. -
lastInsertRowid
:<number> | <bigint> 最近插入的 rowid。此字段是数字或BigInt
,具体取决于准备好的语句的配置。此属性是sqlite3_last_insert_rowid()
的结果。¥
lastInsertRowid
: <number> | <bigint> The most recently inserted rowid. This field is either a number or aBigInt
depending on the prepared statement's configuration. This property is the result ofsqlite3_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
.