List of Key = Value Pairs to SQL Expressions
keyValuesToSql(keyValues, filter, like = filter)
keyValues | list of |
---|---|
filter | logical. If |
like | passed to |
keyValues <- list(name = "Peter", birth = as.POSIXct("1999-09-09")) setCurrentSqlDialect("msaccess") cat(keyValuesToSql(keyValues, filter = TRUE))#> name LIKE 'Peter' AND birth LIKE #1999-09-09##> name = 'Peter' AND birth = #1999-09-09##> name = 'Peter',birth = #1999-09-09##> name LIKE "Peter" AND birth LIKE '1999-09-09'#> name = "Peter" AND birth = '1999-09-09'#> name = "Peter",birth = '1999-09-09'