R/create_update_string.R

Defines functions create_update_string

create_update_string <- function(year, month, week, val, nms, user) {
  paste0(
    'Update weeklybreakdown set ',
    nms,
    ' = ',
    val,
    ' where user =',
    shQuote(user) ,
    ' AND year = ',
    year,
    ' AND month =',
    month,
    ' AND ',
    'week = ',
    week,
    ';'
  )
}
JARS3N/LiveLongAndProsper documentation built on June 21, 2020, 12:49 p.m.