ores.cli
Table of Contents
Summary
ores.cli is a command-line tool for importing and exporting ORE Studio
reference data directly against the database. It supports currencies in JSON,
XML, and CSV formats, with options for temporal queries (as-of a timepoint or
all versions) and key-based filtering. The tool uses Boost.program_options for
argument parsing and accesses repositories directly, bypassing the NATS service
layer. It is intended for administrative and data-migration tasks.
Inputs
- CLI arguments: operation (import/export), format (JSON/XML/CSV), file path, optional entity key, optional as-of timestamp.
- Input files: JSON, XML, or CSV data files containing reference-data records.
- Database connection via configuration.
Outputs
- Imported records written to the PostgreSQL database.
- Exported files in the requested format (JSON, XML, or CSV).
Entry points
src/main.cpp— process entry point.src/config/— Boost.program_options argument parsing.src/app/— application hosting and execution logic.
Dependencies
ores.database— repository access for direct DB operations.ores.refdata.apiorores.trading.api— domain types for entities being imported/exported.- Boost.ProgramOptions,
rfl— argument parsing and JSON/XML serialisation.
