Skip to content

Commit

Permalink
These examples use 2 suggested packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jan 22, 2022
1 parent 0f84503 commit 664ae65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions R/sql.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
#' for instance.
#' @inheritParams glue
#' @seealso [glue_sql_collapse()] to collapse [DBI::SQL()] objects.
#' @param .con \[`DBIConnection`]:A DBI connection object obtained from [DBI::dbConnect()].
#' @param .con \[`DBIConnection`]: A DBI connection object obtained from
#' [DBI::dbConnect()].
#' @return A [DBI::SQL()] object with the given query.
#' @examples
#' @examplesIf requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)
#' con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
#' iris2 <- iris
#' colnames(iris2) <- gsub("[.]", "_", tolower(colnames(iris)))
Expand Down Expand Up @@ -104,9 +105,9 @@
#' nickname = c("Beachhead Iris", "Harlequin Blueflag", "Virginia Iris"),
#' stringsAsFactors = FALSE
#' )
#'
#'
#' DBI::dbWriteTable(con, nicknames_db, nicknames)
#'
#'
#' cols <- list(
#' DBI::Id(table = iris_db, column = "sepal_length"),
#' DBI::Id(table = iris_db, column = "sepal_width"),
Expand Down
5 changes: 4 additions & 1 deletion man/glue_sql.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 664ae65

Please sign in to comment.