Back

update! (clj)

(source)

function

(update! connectable table key-map where-params) (update! connectable table key-map where-params opts)
Syntactic sugar over `execute-one!` to make certain common updates easier. Given a connectable object, a table name, a hash map of columns and values to set, and either a hash map of columns and values to search on or a vector of a SQL where clause and parameters, perform an update on the table.

Examples