Open mbostock opened 11 months ago
YAML frontmatter or comments? Locality of configuration is nice for data loaders.
We added client-side SQL code blocks using a sql front matter option. We could have .sql
data loaders if we registered a database in the project config file.
This would be fantastic. Right now I’m using dbt
to version control the SQL data loaders for Observable Framework:
corresponds to this observable framework plot: https://jaanli.github.io/american-community-survey/income
It’d be nice to have
foo.csv.sql
and somehow automatically run against a registered database, and the CLI would convert the output to CSV automatically. I don’t know how we’d register the databases, though.