isSqlReservedWord function

Test a character vector of SQL names for SQL reserved words

Test a character vector of SQL names for SQL reserved words

This function checks a character vector against a predefined list of reserved SQL words.

isSqlReservedWord(sqlNames, warn = FALSE)

Arguments

  • sqlNames: A character vector containing table or field names to check.
  • warn: (logical) Should a warn be thrown if invalid SQL names are found?

Returns

A logical vector with length equal to sqlNames that is TRUE for each name that is reserved and FALSE otherwise