Custom functions used in Google Sheets for ease of use and improved functionality.
Now click Add
function myFunction() {
gsSqlLibrary.gsSQL("select * from authors");
}
Error: Error reading table data: AUTHORS
/**
* @param {String} sqlStatement - e.g. "select * from authors"
* @param {...any} parms - Optional ["tableName", range, "tableName2", range2,...][addTitle][bindVariables]
* @returns {any[][]}
* @customfunction
*/
function gsSQL(sqlStatement, ...parms) {
return gsSqlLibrary.gsSQL(sqlStatement, ...parms);
}