Export one .odb table to CSV
odb_to_csvExtracts a table from an embedded .odb database and returns it as CSV. Specify the table name when the database contains multiple tables.
Instructions
Extracts exactly one named table from an embedded .odb database as CSV bytes. The table name is required whenever the database declares more than one table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | The table to export -- required when the .odb declares more than one table. | |
| output | No | Where to write the resulting CSV. Omit entirely (or omit outputPath within it) to receive the bytes inline instead. | |
| source | Yes | .odb database to read. 'path' points at the .odb file on disk -- its extension is never used to infer a document format, since documents.js deliberately excludes 'odb' from DocumentFormat (an embedded database front end has no single natural target format -- tables, saved queries, and reports are three unrelated output shapes -- see that package's own README). 'bytesBase64' carries the .odb bytes inline; its 'format' field is required by the shared hybrid input shape but unused by every odb tool. |