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 orDB_Tableto write.path: The path to write the database to.on_existing_file: The behavior to use if the file already exists. Defaults toBackup, which will create a backup of the existing file.
Returns
A file pointing at the written file.