daranzolin / sqltargets

targets extension for SQL queries
https://daranzolin.github.io/sqltargets/
Other
34 stars 1 forks source link

Shorthand to write targets to a database #8

Open daranzolin opened 4 months ago

daranzolin commented 4 months ago

Maybe:

...
tar_plan(
  cars = mtcars,
  flowers = iris,
  tar_write_to_db(tables_loaded, cars, flowers)
  tar_sql(report, "inst/query.sql")
)
...

Then the db dependency could be specified in query.sql instead of individual tables?

-- tar_load(tables_loaded)
...