sqltargets
sqltargets copied to clipboard
Should the connection be passed to tar_sql() instead of parsing from query?
I have somewhat of a proof of concept in my sql-connect-func branch kiwiroy/sqltargets@5089065.
Whoa @kiwiroy, I think I prefer that to what we have now. Putting the connection function in _targets.R fits thematically with all the other targets configurations.
At least one reason for keeping it in the file is 'SQL Preview' in RStudio. It's a nice feature but useless once parameters are added. Perhaps we need an RStudio add-in that 'compiles' any parameterized query.