From feec5aff22ef240ebcc15827d660788f9b5fd4b9 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 17 Jun 2025 11:30:53 -0500 Subject: [PATCH] open/save spreadsheets --- www/html/_assets/js/studio.js | 5 ++++- www/html/_plugins/dbe.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/www/html/_assets/js/studio.js b/www/html/_assets/js/studio.js index 72eeda7..afc2a1d 100644 --- a/www/html/_assets/js/studio.js +++ b/www/html/_assets/js/studio.js @@ -7,7 +7,10 @@ studio.defaults = { 'sqlite':'SELECT * \nFROM sqlite_master', 'sqlite3':'SELECT * \nFROM sqlite_master', 'bigquery':'SELECT * \nFROM .INFORMATION_SCHEMA.COLUMNS \nLIMIT 10', - 'postgresql':'SELECT *\nFROM INFORMATION_SCHEMA.COLUMNS LIMIT 10' + 'postgresql':'SELECT *\nFROM INFORMATION_SCHEMA.COLUMNS LIMIT 10', + 'iceberg':'SHOW TABLES', + 'mysql':'SELECT * \nFROM INFORMATION_SCHEMA.COLUMNS LIMIT 10', + 'mariadb':'SHOW TABLES' } studio.init = function (_context){ studio._context = _context diff --git a/www/html/_plugins/dbe.py b/www/html/_plugins/dbe.py index 7e93603..be48586 100644 --- a/www/html/_plugins/dbe.py +++ b/www/html/_plugins/dbe.py @@ -35,7 +35,7 @@ def get (**_args) : @cms.Plugin(mimetype="application/json",method="GET") def providers (**_args): technologies = [] - transport.supported().apply(lambda row: [technologies.append({"group":row.name,"name":_name}) for _name in row if _name != ''],axis=0).tolist() + transport.supported().apply(lambda row: [technologies.append({"group":row.name,"name":_name}) for _name in row if _name != '' and row.name in ['sql','nosql','warehouse']],axis=0).tolist() return technologies @cms.Plugin(mimetype="text/plain") def version (**_args) : @@ -57,7 +57,7 @@ def apply (**_args): else: _data = [] - + _qreader.close() return _data def set(**_args): """