r/GoogleAppsScript • • Apr 14 '21

Guide SheetQuery: An ORM-Like Query Builder for Google Sheets and Google Apps Script

https://www.budgetsheet.net/articles/sheetquery
19 Upvotes

8 comments sorted by

View all comments

Show parent comments

2

u/vlucas Apr 15 '21

This is similar to turning csv’s into python dicts? much more fun to work with and easier to code with if so.

Kinda like that, yeah. It allows to to easily query for data in any spreadsheet with Google Apps Script, work with the data as native JavaScript dict/key/value objects, and then update/delete/insert the corresponding objects as rows with headings. You never have to worry about the row or column index, etc. or other things that are tedious and likely to trip you up. I use it for many things in BudgetSheet.

2

u/pilly-bilgrim Apr 15 '21

This is huge! Every time I write a new apps script, I have to scratch code new methods and objects to be able to get values using headers - it's such a pain! This is a massive leap ahead for making GAS more useable.