
# CSV Database
```{admonition} Module type

<span style='color: #FF00FF'>[database](/core_modules.md#database-modules)</a></span>
```

Handles exporting archival results to a CSV file.

### Features
- Saves archival metadata as rows in a CSV file.
- Automatically creates the CSV file with a header if it does not exist.
- Appends new metadata entries to the existing file.

### Setup
Required config:
- csv_file: Path to the CSV file where results will be stored (default: "db.csv").


## Configuration Options

### YAML
```{code} yaml
csv_db:
  csv_file: db.csv

```

### Command Line:
| Option | Description | Default | Type|
| --- | --- | --- | --- |
| `csv_db.csv_file` | Optional. CSV file name | db.csv | string |

[API Reference](../../../autoapi/csv_db/index)
