Skip to main content

DuckDB_Connection.write_file

write_filequerypathformaton_existing_file

Documentation

Writes a table to a file using DuckDB's writing capabilities.

Arguments

  • table: The input table name or DB_Table to write.
  • path: The path to write the database to.
  • on_existing_file: The behavior to use if the file already exists. Defaults to Backup, which will create a backup of the existing file.

Returns

A file pointing at the written file.