Closed vladfaust closed 5 years ago
I'd say go one step further and auto-commit. We might need to add a way to cancel the transaction though:
Onyx::SQL.transaction do |tx|
res = Onyx::SQL.exec(foo) # Repo uses transaction connection
tx.cancel if res.something?
end
Should expand to:
Edit: updated with #16 proposals.