executeSQL
A function that executes a SQL query on a local SQLite database and returns the query result in JSON format.
Signature
Arguments
databasePath
is the path to the local SQL database.query
is the SQL query to run on the database.
Return
Returns a Promise
that resolves to an array of objects representing the query results.
Example
Last updated