]> git.ardis.lu - sheets-db/summary
 
descriptionMinimal Google Apps Script (GAS) project intended to quickly transform a Google Sheet into a SQLite database.
last changeSun, 16 Aug 2026 06:53:17 +0000 (23:53 -0700)
readme

sheets-db

sheets-db logo

Minimal Google Apps Script (GAS) project intended to quickly transform a Google Sheet into a SQLite database.

Click here to create a copy of the demo Google Sheet (the required GAS code will also be copied).

Code repository mirrors: GitHub, Codeberg, git.ardis.lu

Requirements

Initial setup

These steps only need to be completed once.

Setting up the Google Sheet

  1. Create a new Google Sheet or create a copy of the demo Google Sheet.
  2. Go to Extensions > Apps Script to create a new Google Apps Script (GAS) project. The GAS project is automatically attached to the Google Sheet.
  3. Copy Code.gs and sidebar.html into the GAS project and save. If you copied the demo Google Sheet, this code should already be there.

(OPTIONAL) Setting up "Upload .sqlite3 file to Backblaze"

If you use Backblaze as a storage provider, you can use the "Upload .sqlite3 file to Backblaze" button to upload the SQLite database directly to Backblaze.

This setup is NOT necessary if you only want to generate SQLite databases.

  1. In Backblaze, create a new application key with write access to the storage bucket where you want to upload the file to.
  2. Note the keyID and applicationKey shown.
  3. In the GAS editor, create the following Google Apps Script properties (environment variables) under Project Settings > Script Properties:

Usage

  1. Refresh the Google Sheet and wait for the GAS code to finish loading.
  2. See the new custom menu button 🔥 sheets-db. Press 🔥 sheets-db > ❓ Help for end-user instructions.
  3. Press 🔥 sheets-db > 🟢 Start to initialize the SQLite sidebar.
  4. Click the buttons on the sidebar to generate the SQLite database and/or upload the file to Backblaze.
  5. Upload the .sqlite3 file to your favorite SQLite client (example: sqliteviz), to run queries on the database.
shortlog
2026-08-16 Ardis LuUpgrade sql.js to 1.14.2 main
2026-03-04 Ardis LuUpgrade sql.js to 1.14.1
2026-03-03 Ardis LuAdd code repository mirrors
2026-03-02 Ardis LuUpgrade sql.js to 1.14.0
2025-12-17 Ardis LuAdd MIT license
2025-03-15 Ardis LuUpgrade sql.js to 1.13.0
2025-01-26 Ardis LuSimplify system font stack
2024-10-31 Ardis LuUpgrade sql.js to 1.12.0
2024-10-17 Ardis LuUse multi-keyword display value
2024-10-17 Ardis LuUpgrade dependencies
2024-04-14 Ardis LuMake footer link clickable
2024-04-14 Ardis LuUpgrade sql.js to 1.10.3
2024-02-24 Ardis LuMake table header sticky
2024-02-14 Ardis LuExplicitly set <th> scope
2024-02-14 Ardis LuUse consistent casing for output column names
2024-01-21 Ardis LuUpgrade sql.js
...
heads
2 months ago main
This page took 0.086685 seconds and 7 git commands to generate.