Skip to content

csv_writer

sqllocks_spindle.output.csv_writer

CSV writer — write generated tables to CSV files.

Classes

CsvWriter

Write generated tables to CSV files.

Example

from sqllocks_spindle.output import CsvWriter

writer = CsvWriter(output_dir="./output") writer.write_all(result.tables)

Methods:
write_all(tables)

Write all tables as separate CSV files.

Returns a list of paths to the written files.

write(table_name, df)

Write a single table to CSV.