Showing 2 of 6 files from the diff.

@@ -229,6 +229,36 @@
Loading
229 229
230 230
# DBI methods ------------------------------------------------------------------
231 231
232 +
#' @export
233 +
db_write_table.PostgreSQLConnection <- function(con, table, types, values,
234 +
                                                temporary = TRUE, overwrite = FALSE, ....) {
235 +
236 +
  dbWriteTable(
237 +
    con,
238 +
    name = table,
239 +
    value = values,
240 +
    field.types = types,
241 +
    temporary = temporary,
242 +
    overwrite = overwrite,
243 +
    row.names = FALSE
244 +
  )
245 +
246 +
  table
247 +
}
248 +
249 +
#' @export
250 +
db_query_fields.PostgreSQLConnection <- function(con, sql, ...) {
251 +
  fields <- build_sql(
252 +
    "SELECT * FROM ", sql_subquery(con, sql), " WHERE 0=1",
253 +
    con = con
254 +
  )
255 +
256 +
  qry <- dbSendQuery(con, fields)
257 +
  on.exit(dbClearResult(qry))
258 +
259 +
  dbGetInfo(qry)$fieldDescription[[1]]$name
260 +
}
261 +
232 262
# http://www.postgresql.org/docs/9.3/static/sql-explain.html
233 263
#' @export
234 264
sql_query_explain.PostgreSQLConnection <- function(con, sql, format = "text", ...) {

@@ -74,7 +74,7 @@
Loading
74 74
# fallback helper ---------------------------------------------------------
75 75
76 76
dbplyr_fallback <- function(con, .generic, ...) {
77 -
  if (dbplyr_edition(con) >= 2) {
77 +
  if (dbplyr_edition(con) >= 2 && !("PostgreSQLConnection" %in% class(con))) {
78 78
    # Always call DBIConnection method which contains the default implementation
79 79
    fun <- sym(paste0(.generic, ".DBIConnection"))
80 80
  } else {
Files Coverage
R 86.39%
Project Totals (72 files) 86.39%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading