Skip to main content

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 or DB_Table to 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 to Backup, which will create a backup of the existing file.

Returns

A file pointing at the written file.