How to use the doltpy.etl.get_df_table_writer function in doltpy

To help you get started, we’ve selected a few doltpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dolthub / dolt / benchmark / perf_tools / python / push_output_to_dolthub.py View on Github external
def write_results_to_dolt(results_file: str, remote: str, branch: str):
    table_writer = get_df_table_writer(RESULTS_TABLE,
                                       lambda: pd.read_csv(results_file),
                                       RESULTS_TABLE_PKS,
                                       import_mode='update')
    loader = get_dolt_loader(table_writer, True, 'benchmark run', branch)
    load_to_dolthub(loader, clone=True, push=True, remote_name='origin', remote_url=remote)

doltpy

A Python package for using Dolt database via Python.

Apache-2.0
Latest version published 2 years ago

Package Health Score

42 / 100
Full package analysis