DuckDB_Connection.write_spatial_file
write_spatial_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.format: The spatial format to use when writing the file.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.