Skip to content
New issue

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

Tweak implementation of tbl() method #37

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/backend-dbplyr__duckdb_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ sql_escape_datetime.duckdb_connection <- function(con, x) {
# @param src .con A \code{\link{dbConnect}} object, as returned by \code{dbConnect()}
# @param from Table or parquet/csv -files to be registered
# @param cache Enable object cache for parquet files
tbl.duckdb_connection <- function(src, from, cache = FALSE, ...) {
tbl.duckdb_connection <- function(src, from, ..., cache = FALSE) {
ident_q <- pkg_method("ident_q", "dbplyr")
if (!inherits(from, "sql") & !DBI::dbExistsTable(src, from)) from <- ident_q(from)
if (!inherits(from, "sql") && !DBI::dbExistsTable(src, from)) from <- ident_q(from)
if (cache) DBI::dbExecute(src, "PRAGMA enable_object_cache")
NextMethod("tbl")
}
Expand Down
Loading