Skip to content

MutationBuilder.execute() method

Home > @direct-sqlite/core > MutationBuilder > execute

Compiles and executes the data mutation transaction statement context across storage layers.

Signature:

execute(): {
changes: any;
lastInsertRowid: number;
};

Returns:

{ changes: any; lastInsertRowid: number; }

An object containing the number of changes made by the UPDATE or DELETE operation and the last inserted or updated row ID. The exact structure of the result may depend on the underlying SQLite client being used.