ident() takes unquoted strings and quotes them for you; ident_q() assumes its input has already been quoted.

ident(...)

ident_q(...)

is.ident(x)

Arguments

...

A character vector, or name-value pairs

x

An object

Details

These two ident clsases are used during SQL generation to make sure the values will be quoted as, not as strings.

Examples

# SQL92 quotes strings with ' escape("x")
#> <SQL> 'x'
# And identifiers with " ident("x")
#> <IDENT> "x"
# You can supply multiple inputs ident(a = "x", b = "y")
#> <IDENT> "x" AS "a", "y" AS "b"
ident_q(a = "x", b = "y")
#> <IDENT> x AS "a", y AS "b"