@@ -26,14 +26,19 @@
Loading
26 26
#' @rdname backend-postgres
27 27
simulate_postgres <- function() simulate_dbi("PostgreSQLConnection")
28 28
29 +
# Use dbplyr edition 1 for custom method dispatch on RPostgreSQL connections
29 30
#' @export
30 31
dbplyr_edition.PostgreSQLConnection <- function(con) {
31 -
  2L
32 +
  1L
32 33
}
33 34
#' @export
34 35
dbplyr_edition.PostgreSQL <- dbplyr_edition.PostgreSQLConnection
36 +
37 +
# Use dbplyr edition 2 for RPostgres connections
35 38
#' @export
36 -
dbplyr_edition.PqConnection <- dbplyr_edition.PostgreSQLConnection
39 +
dbplyr_edition.PqConnection <- function(con) {
40 +
  2L
41 +
}
37 42
38 43
#' @export
39 44
db_connection_describe.PostgreSQLConnection <- function(con) {

@@ -74,7 +74,7 @@
Loading
74 74
# fallback helper ---------------------------------------------------------
75 75
76 76
dbplyr_fallback <- function(con, .generic, ...) {
77 -
  if (dbplyr_edition(con) >= 2 && !("PostgreSQLConnection" %in% class(con))) {
77 +
  if (dbplyr_edition(con) >= 2) {
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.35%
Project Totals (72 files) 86.35%
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