def download_table():
    ss = mimic_widgets.schema_select()
    c = mimic_widgets.where_clause_text()
    b = widgets.Button(description='Execute')

    display(ss)
    display(c)
    display(b)

    @b.on_click
    def on_button_clicked(b):
        display(store_csv(ss.value, c.value or None))
Esempio n. 2
0
def download_table():
    ss = mimic_widgets.schema_select()
    c = mimic_widgets.where_clause_text()
    b = widgets.Button(description='Execute')

    display(ss)
    display(c)
    display(b)

    @b.on_click
    def on_button_clicked(b):
        display(store_csv(ss.value, c.value or None))
def query():
    ss = mimic_widgets.schema_select()
    c = mimic_widgets.where_clause_text()
    b = widgets.Button(description='Execute')

    display(ss)
    display(c)
    display(b)    

    @b.on_click
    def on_button_clicked(b):
        result = load_table(ss.value, c.value or None)
        loaded_tables[ss.value.name] = result
        print('Loaded', ss.value.name, 'and stored in loaded_tables["{}"]'.format(ss.value.name))
Esempio n. 4
0
def query():
    ss = mimic_widgets.schema_select()
    c = mimic_widgets.where_clause_text()
    b = widgets.Button(description='Execute')

    display(ss)
    display(c)
    display(b)

    @b.on_click
    def on_button_clicked(b):
        result = load_table(ss.value, c.value or None)
        loaded_tables[ss.value.name] = result
        print('Loaded', ss.value.name,
              'and stored in loaded_tables["{}"]'.format(ss.value.name))