Back

execute-one! (clj)

(source)

function

(execute-one! stmt) (execute-one! connectable sql-params) (execute-one! connectable sql-params opts)
General SQL execution function that returns just the first row of a result. For any DDL or SQL statement that will return just an update count, this is the preferred function to use. Can be called on a `PreparedStatement`, a `Connection`, or something that can produce a `Connection` via a `DataSource`. Note: although this only returns the first row of a result set, it does not place any limit on the result of the SQL executed.

Examples