MCPcopy
hub / github.com/coleifer/sqlite-web / get_dataset

Function get_dataset

sqlite_web/sqlite_web.py:251–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249app.url_map.converters['b64'] = Base64Converter
250
251def get_dataset():
252 if not hasattr(g, 'dataset'):
253 dataset_key = session.get('dataset')
254 if dataset_key is None or dataset_key not in datasets:
255 dataset_key = list(datasets)[0]
256 session['dataset'] = dataset_key
257 g.dataset = datasets[dataset_key]
258 return g.dataset
259
260#
261# Flask views.

Callers 15

_query_viewFunction · 0.85
innerFunction · 0.85
table_createFunction · 0.85
table_structureFunction · 0.85
add_columnFunction · 0.85
drop_columnFunction · 0.85
rename_columnFunction · 0.85
add_indexFunction · 0.85
drop_indexFunction · 0.85
drop_triggerFunction · 0.85
table_contentFunction · 0.85
table_insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected