sql_quote: Helper function for quoting sql elements.

View source: R/escape.R

sql_quoteR Documentation

Helper function for quoting sql elements.

Description

If the quote character is present in the string, it will be doubled. NAs will be replaced with NULL.

Usage

sql_quote(x, quote)

Arguments

x

Character vector to escape.

quote

Single quoting character.

Examples

sql_quote("abc", "'")
sql_quote("I've had a good day", "'")
sql_quote(c("abc", NA), "'")

tidyverse/dbplyr documentation built on April 7, 2024, 1:42 a.m.