We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the query logic to take columns as arguments, etc.
The text was updated successfully, but these errors were encountered:
@dianario This is also something you could take a look at if you want to learn a bit of SQL. It should be fairly simple.
Instead of writing
function() { dbGetQuery(db, " SELECT col1, col2, col3 FROM table; ") }
We can isntead do
function(colnames_vector) { dbGetQuery(db, glue::glue(" SELECT {colnames_vector} FROM table; ")) }
This will help make the code easier to change and more transparent in the future, as we can pass in the columns within the pipeline script.
Note this refers to code/process_tables/queries.r
code/process_tables/queries.r
Sorry, something went wrong.
Does this still need to get done?
It is something simple to implement if you want to get your feet wet.
dianario
jordantgh
No branches or pull requests
Rewrite the query logic to take columns as arguments, etc.
The text was updated successfully, but these errors were encountered: