2023-03-25 09:39:59 +11:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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) {
|
2023-08-27 16:52:07 +10:00
|
|
|
return wails.CallByID(2804887383, statement, ...args);
|
2023-03-25 09:39:59 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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) {
|
2023-08-27 16:52:07 +10:00
|
|
|
return wails.CallByID(2209315040, statement, ...args);
|
2023-03-25 09:39:59 +11:00
|
|
|
}
|