ui.createMenu('🔥 sheets-db')
.addItem('❓ Help', 'showHelp')
- .addItem('🟢 Open sidebar', 'openSidebar')
+ .addItem('🟢 Start', 'showSidebar')
.addToUi();
}
USAGE:
- Edit the data on this workbook like you would on any other Google Sheet, noting KEY ASSUMPTIONS below.
-- When ready, press the "Open sidebar" button to generate a SQLite database from the data on this workbook!
+- When ready, press the "🟢 Start" button to generate a SQLite database from the data on this workbook!
KEY ASSUMPTIONS:
- Each tab in this workbook is a data table
ui.alert('Help', helpMessage, ui.ButtonSet.OK);
}
-function openSidebar() {
+function showSidebar() {
const ui = SpreadsheetApp.getUi();
const html = HtmlService.createHtmlOutputFromFile('query-to-db').setTitle('🔥 sheets-db');
ui.showSidebar(html);
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 > 🟢 Open sidebar` to initialize the SQLite sidebar.
+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](https://lana-k.github.io/sqliteviz/#/workspace)), to run queries on the database.