blackstork-io / fabric

An open-source command-line tool for reporting workflow automation and a configuration language for reusable templates. Reporting-as-Code
https://blackstork.io/fabric/
Apache License 2.0
10 stars 0 forks source link

Unify params for `data.csv`, `data.json` and `data.txt` data sources #176

Open traut opened 2 weeks ago

traut commented 2 weeks ago

Background

Currently, data.csv, data.json, and data.txt data sources use either path or glob (data.json) config params. This limits the applicability of the data block -- with data.json, it is possible to load multiple files, but not with data.csv. The variability between the files should not matter -- Fabric data blocks return a json object already, so they can accommodate multiple files with misaligned data structures.

Design

For data.csv and data.txt data sources, use glob instead of path, and add ability to read multiple files