tests/testthat/_snaps/build-sql.md

build_sql() requires connection

Code
  build_sql("SELECT * FROM ", x)
Condition
  Error in `build_sql()`:
  ! `con` must not be NULL.

glue_sql() checks size

Code
  glue_sql2("{.col x}", .con = con)
Condition
  Error in `.transformer()`:
  ! `value` must have size 1, not 2.
Code
  glue_sql2("{.col character()}", .con = con)
Condition
  Error in `.transformer()`:
  ! `value` must have size 1, not 0.

glue_sql() can collapse

Code
  glue_sql2("{.tbl x*}", .con = con)
Condition
  Error in `glue_check_collapse()`:
  ! Collapsing is only allowed for "col" and "val", not for "tbl".
Code
  glue_sql2("{.name x*}", .con = con)
Condition
  Error in `glue_check_collapse()`:
  ! Collapsing is only allowed for "col" and "val", not for "name".
Code
  glue_sql2("{.from x*}", .con = con)
Condition
  Error in `glue_check_collapse()`:
  ! Collapsing is only allowed for "col" and "val", not for "from".


Try the dbplyr package in your browser

Any scripts or data that you put into this service are public.

dbplyr documentation built on Oct. 26, 2023, 9:06 a.m.