open/save spreadsheets

main
Steve Nyemba 6 days ago
parent d92350bfae
commit feec5aff22

@ -7,7 +7,10 @@ studio.defaults = {
'sqlite':'SELECT * \nFROM sqlite_master',
'sqlite3':'SELECT * \nFROM sqlite_master',
'bigquery':'SELECT * \nFROM <dataset>.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

@ -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):
"""

Loading…
Cancel
Save