Source code for db_viewer
import sqlite3
import pandas as pd
[docs]def read_table(table: str):
"""
Returns the entire table given the table's name.
:param table:
"""
with sqlite3.connect('byte_server.db') as db:
return pd.read_sql_query(f'SELECT * FROM {table}', db)
[docs]def submission_run_infos():
"""
Returns Run table.
"""
return read_table('submission_run_info')