def _add_test_table(dolt: Dolt, table_name: str): dolt.sql(query=f''' CREATE TABLE `{table_name}` ( `name` VARCHAR(32), `adjective` VARCHAR(32), `id` INT NOT NULL, `date_of_death` DATETIME, PRIMARY KEY (`id`) ); ''') dolt.add(table_name) dolt.commit('Created test table')
def _read_table_sql(dolt: Dolt, sql: str) -> List[dict]: return dolt.sql(sql, result_format="csv")