Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
demmings committed Oct 16, 2022
1 parent 6235363 commit dc27588
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down

0 comments on commit dc27588

Please sign in to comment.