gungnir.transaction

changeset->error

(changeset->error ?changeset)(changeset->error ?changeset f)

Returns a transaction error if changeset has a :changeset/errors key.

error

(error e)

Returns a transaction error with the error e

error-data

(error-data transaction)

Retrieve error data from a transaction or return nil.

error-key

(error-key transaction)

Retrieve the error key from a transaction or return nil.

error?

(error? ?error)

Returns true if ?error contains a transaction error, otherwise returns false.

execute!

(execute! f)(execute! f datasource)

Executes f within a jdbc transaction using datasource. If no datasource is supplied then use the global gungnir.database/*datasource*.

execute-pipeline!

(execute-pipeline! pipeline)(execute-pipeline! pipeline datasource)

Executes pipeline as arguments within a jdbc transaction using datasource. If no datasource is supplied then use the global gungnir.database/*datasource*.