These methods are straight-forward implementations of the corresponding generic functions.
# S4 method for MySQLConnection,character
make.db.names(dbObj, snames,
keywords = .SQL92Keywords, unique = TRUE, allow.keywords = TRUE, ...)# S4 method for MySQLConnection
SQLKeywords(dbObj, ...)
# S4 method for MySQLConnection,character
isSQLKeyword(dbObj, name,
keywords = .MySQLKeywords, case = c("lower", "upper", "any")[3], ...)
any MySQL object (e.g., MySQLDriver
).
a character vector of R/S-Plus identifiers (symbols) from which we need to make SQL identifiers.
a character vector with SQL keywords, by default it is
.MySQLKeywords
define in RMySQL
. This may be overriden by
users.
logical describing whether the resulting set of SQL names
should be unique. Its default is TRUE
. Following the SQL 92
standard, uniqueness of SQL identifiers is determined regardless of whether
letters are upper or lower case.
logical describing whether SQL keywords should be
allowed in the resulting set of SQL names. Its default is TRUE
Unused, needed for compatibility with generic.
a character vector of SQL identifiers we want to check against keywords from the DBMS.
a character string specifying whether to make the
comparison as lower case, upper case, or any of the two. it defaults to
any
.