paleolimbot opened a new issue, #1066:
URL: https://github.com/apache/arrow-adbc/issues/1066
In DBI we have `DBI::dbQuoteIdentifier()` and `DBI::dbQuoteLiteral()`. When
R users are trying to write generic database code they often need these for
safety (e.g., `glue::glue_sql()` uses them to prevent against SQL injection
attacks). We may want to consider dealing with these at a generic level (i.e.,
piped through one of the C ADBC entrypoints); however in the meantime we can
support this in the R bindings. Functionally, we need an S3 generic:
```r
adbc_quote_identifier <- function(connection, x, ...) {
UseMethod("adbc_quote_identifier")
}
adbc_quote_literal <- function(connection, x, ...) {
UseMethod("adbc_quote_identifier")
}
```
...and an implementation in driver packages that support this operation via
a C entry point (e.g., SQLite, libpq).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]