Back

insert! (clj)

(source)

function

(insert! connectable table key-map) (insert! connectable table key-map opts)
Syntactic sugar over `execute-one!` to make inserting hash maps easier. Given a connectable object, a table name, and a data hash map, inserts the data as a single row in the database and attempts to return a map of generated keys.

Examples