Methods

Methods

  • Executes the given query with the given parameters (if provided) on the local database.

    Parameters

    • queryId: number

      The ID of the query to execute

    • Optionalparameters: unknown[]

      Parameters to bind in to the query

    Returns Promise<null | number | {
        columns?: string[];
        rows: any[][];
    }>

    If the executed query returns rows of data, then an object with both the rows and the column names (if applicable) will be returned. If the executed query returns the number of rows affected, then that number will be returned. If the executed query returns nothing, returns null.