DriverDrive

This is the the driver for DB.DRIVE described in Database abstraction with google apps script


The library reference is:

Ma__4vH–nQ_FPsuNF1BFuyz3TLx7pV4j

Reference

This driver uses the Google Drive Service to save a JSON file representing the contents of a small database. Note that manipulation of the contents causes a rewrite of the entire object, so this particular solution is probably best for daily small amounts of data. Having said that, the performance seems pretty good. It works the same as all the other drivers, and querying sorting and limiting are all implemented. This is a fairly useful way to create JSON data as input to other apps.
The siloId is the name of the file in which to store the JSON data, and the dbId is the path of the folder in which to store the file. Here’s how to get a handler.

[crayon-6148164841b32652051256/]

The Code

[crayon-6148164841b3a326071407/]
<p>[su_spacer size="10"]</p>
<p>[su_accordion][su_spoiler title="For more Database abstraction and GAS, see here" open="no" style="default" icon="plus" anchor="" class=""][subpages exceptme="true" childof="1484"][/su_spoiler] [/su_accordion]</p>
<p>For help and information jopin our forum, follow the blog and or follow me on Twitter</p>
About brucemcp 225 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.