From dc27588de8fb426831341cd966b3474b7286b938 Mon Sep 17 00:00:00 2001 From: Chris Demmings <87726024+demmings@users.noreply.github.com> Date: Sun, 16 Oct 2022 19:20:34 -0400 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdee4b5..7fa3eee 100644 --- a/README.md +++ b/README.md @@ -212,18 +212,19 @@ SELECT * FROM books WHERE author_id IN (select id from authors where first_name =-gsSQL("select sum(amount) from mastertransactions where account = ? and expense_category = ? and transaction_date >= ? and transaction_date <= ?", {{"mastertransactions", "Master Transactions!$A$1:$I",60}}, false, myName, "Savings - TFSA", startIncomeDate, endIncomeDate) ``` -# WARNING: +# Known Issues: -The BASIC SELECT functionality is implemented, however if you want to do anything extremely fancy, it is most likely not going to work. Check out the SqlTest.js to get an idea of the kind of commands that will work. +Most all SELECT functionality is implemented, however if you want to do anything extremely fancy, it may not to work. Check out the SqlTest.js to get an idea of the kind of commands that will work. -Known Issues: 1) Field alias syntax is not fully supported. It is currently only used for column titles that can be returned with the select data. -2) Moderate amount of error checking. When developing your SQL SELECT statements and something is not correct or not supported, the application may just fail without giving any real indication of the problem. This needs improvements. +2) Moderate amount of error checking. When developing your SQL SELECT statements and something is not correct or not supported, the application may just fail without giving any real indication of the problem. This needs improvements (although it is much improved since the first version). 3) Not really an issue, but the use of bind variables does not mean that the SELECT is compiled and reused. It is only to make your SELECT easier to read. +4) All SELECT KEYWORDS must be in the same case. Individual keywords like 'SELECT', 'FROM', 'ORDER BY', ... must be either upper or lower case. You can have a mixture of upper and lower case in the entire statement, but individual keywords must be in one case only. For example, ```Select * from table``` will give an error. + # Install * Install files to your node_modules folder by using NPM. This is installed as a package, but Google App Script (GAS) files do not 'require' or 'import'. Copy the .js files from the /src folder into the location where you have your current google script files and then 'clasp push'. The @customfunction "gsSQL" will be usable right away. The class "Sql" is also available from your current javascript application. ```