Learn R Programming

RMariaDB (version 1.3.2)

mariadb-quoting: Quote MariaDB strings and identifiers.

Description

In MariaDB, identifiers are enclosed in backticks, e.g. `x`.

Usage

# S4 method for MariaDBConnection,Id
dbQuoteIdentifier(conn, x, ...)

# S4 method for MariaDBConnection,SQL dbQuoteIdentifier(conn, x, ...)

# S4 method for MariaDBConnection,character dbQuoteIdentifier(conn, x, ...)

# S4 method for MariaDBConnection dbQuoteLiteral(conn, x, ...)

# S4 method for MariaDBConnection,SQL dbQuoteString(conn, x, ...)

# S4 method for MariaDBConnection,character dbQuoteString(conn, x, ...)

# S4 method for MariaDBConnection,SQL dbUnquoteIdentifier(conn, x, ...)

Arguments

Examples

Run this code
if (mariadbHasDefault()) {
  con <- dbConnect(RMariaDB::MariaDB())
  dbQuoteIdentifier(con, c("a b", "a`b"))
  dbQuoteString(con, c("a b", "a'b"))
  dbDisconnect(con)
}

Run the code above in your browser using DataLab