@tauri-apps/plugin-sql - v2.3.0
    Preparing search index...

    Interface QueryResult

    interface QueryResult {
        rowsAffected: number;
        lastInsertId?: number;
    }
    Index

    Properties

    rowsAffected: number

    The number of rows affected by the query.

    lastInsertId?: number

    The last inserted id.

    This value is not set for Postgres databases. If the last inserted id is required on Postgres, the select function must be used, with a RETURNING clause (INSERT INTO todos (title) VALUES ($1) RETURNING id).