5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 15:11:53 +08:00
wails/v3/plugins/sqlite/sqlite_execute_select.js
Lea Anthony 755e869fe7 [v3] Add start_at_login plugin
[v3] Fix plugin startup/shutdown order
2023-04-05 21:22:02 +10:00

21 lines
572 B
JavaScript

/**
* Execute a SQL statement.
* @param statement {string} - SQL statement to execute.
@param args {...any} - Arguments to pass to the statement.
* @returns {Promise<void>}
*/
function Execute(statement, ...args) {
return wails.Plugin("sqlite", "Execute", statement, ...args);
}
/**
* Perform a select query.
* @param statement {string} - Select SQL statement.
* @param args {...any} - Arguments to pass to the statement.
* @returns {Promise<any>}
*/
function Select(statement, ...args) {
return wails.Plugin("sqlite", "Select", statement, ...args);
}