You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here a some interfaces that I think are missing in DBI package for it to be work:
Extract variables from sql
Function that can extract parameter names from sql based on different notations, as opposed to current DBI::sqlParseVariables implementation will support different options:
database
notation
postgres
$param_name
bigquery
@param_name
other
?param_name
Each package that supports DBI interfaces should provide information about notation used by the corresponding database
Interface in the DBI package that will allow to access notation for parameters used in the engine
Each package should implement a flag that indicates if database supports parameterised queries
Interface in the DBI package that will define if interpolation should be done or not, e.g. whether DB engine supports parameterised queries
The text was updated successfully, but these errors were encountered:
As someone who is a beginner in the subtleties of query safety, is glue::glue_sql() sufficiently safe? It doesn't use the actual SQL parameterization methods which keep the query and the data separate, but it might be simple enough.
Hell, I've written a package myself which does precisely this (the package is for access to a specific database, so the connection pool is internalized so we don't need to keep copying it all over the place):
myPackage::getQuery(" SELECT * FROM foo WHERE a = { a } AND b IN ({ b* })")
I would like to have functionality in Rmarkdown files that is similar to BigQuery Magics via yihui/knitr#1867
here a some interfaces that I think are missing in DBI package for it to be work:
Function that can extract parameter names from sql based on different notations, as opposed to current
DBI::sqlParseVariables
implementation will support different options:Each package that supports DBI interfaces should provide information about notation used by the corresponding database
Interface in the DBI package that will allow to access notation for parameters used in the engine
Each package should implement a flag that indicates if database supports parameterised queries
Interface in the DBI package that will define if interpolation should be done or not, e.g. whether DB engine supports parameterised queries
The text was updated successfully, but these errors were encountered: