Skip to content

DDL tests for simulated DBI #284

Description

@krlmlr

Methods like db_compute() and db_copy_to() currently require a real database to be tested against. Suggesting the following approach:

  1. Define a db_execute() generic, implement it only for the "TestConnection" class (which would print the SQL) and for "DBIConnection" (which forwards to DBI::dbExecute())
  2. Replace all calls to DBI::dbExecute() with calls to db_execute()
  3. Run tests with simulate_dbi(...), capture output

Reference: https://github.com/tidyverse/dbplyr/pull/280/files#r275091349

Metadata

Metadata

Assignees

No one assigned

    Labels

    dplyr verbs 🤖Translation of dplyr verbs to SQLfeaturea feature request or enhancement

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions