Rest
Readonly
Because the set method interprets strings as literals instead of columns you must use the col method to set a column to another column as in: sql.update('my_table')(sql => sql.set('col1', sql.col('col2')))
set
col
sql.update('my_table')(sql => sql.set('col1', sql.col('col2')))
Allows you to insert a literal into the query.
Set has two forms .set('col', value) and .set({ col1: value, col2: value2 })
.set('col', value)
.set({ col1: value, col2: value2 })
WHERE [expr]
Either an expression that evaluates to a boolean or a shorthand equality object mapping columns to values.
Generated using TypeDoc
Because the
set
method interprets strings as literals instead of columns you must use thecol
method to set a column to another column as in:sql.update('my_table')(sql => sql.set('col1', sql.col('col2')))