sql_quote: Helper function for quoting sql elements.

Description Usage Arguments Examples

View source: R/sql-escape.r

Description

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

Usage

1

Arguments

x

Character vector to escape.

quote

Single quoting character.

Examples

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

sctyner/dplyr050 documentation built on May 17, 2019, 2:22 p.m.