| dbQuoteIdentifier,TrinoConnection,character-method | R Documentation |
Trino follows the SQL standard: identifiers are wrapped in double quotes
with embedded double quotes doubled, and string literals are wrapped in
single quotes with embedded single quotes doubled. A value that is already
DBI::SQL() is returned unchanged rather than quoted a second time.
## S4 method for signature 'TrinoConnection,character'
dbQuoteIdentifier(conn, x, ...)
## S4 method for signature 'TrinoConnection,SQL'
dbQuoteIdentifier(conn, x, ...)
## S4 method for signature 'TrinoConnection,character'
dbQuoteString(conn, x, ...)
## S4 method for signature 'TrinoConnection,SQL'
dbQuoteString(conn, x, ...)
conn |
A TrinoConnection object. |
x |
A character vector, or an identifier for |
... |
Unused, for compatibility with the generic. |
A DBI::SQL object.
con <- DBI::dbConnect(RTrino::Trino(), host = Sys.getenv("RTRINO_TEST_URL"),
catalog = "tpch", schema = "tiny")
DBI::dbQuoteIdentifier(con, "my column")
DBI::dbQuoteString(con, "O'Brien")
DBI::dbDisconnect(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.