Client APIs
Writing Data to Disk
DuckDB supports writing Relation objects directly to disk in a variety of formats. The [`COPY` statement](#docs:sql:statements:copy) can be used to write data to disk using SQL as an alternative.  
```python
import duckdb

duckdb.sql("SELECT 42").write_parquet("out.parquet") # Write to a Parquet file
duckdb.sql("SELECT 42").write_csv("out.csv")         # Write to a CSV file
duckdb.sql("COPY (SELECT 42) TO 'out.parquet'")      # Copy to a Parquet file
```