Postgrex.rollback
You're seeing just the function
rollback
, go back to Postgrex module for more information.
Specs
rollback(DBConnection.t(), reason :: any()) :: no_return()
Rollback a transaction, does not return.
Aborts the current transaction fun. If inside multiple transaction/3
functions, bubbles up to the top level.
Example
{:error, :oops} = Postgrex.transaction(pid, fn(conn) ->
DBConnection.rollback(conn, :bar)
IO.puts "never reaches here!"
end)