mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-05 10:12:04 +08:00
21 lines
559 B
JavaScript
21 lines
559 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.CallByID(2804887383, 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.CallByID(2209315040, statement, ...args);
|
|
}
|