# File lib/sqlite/database.rb, line 570 def transaction execute "begin transaction" @transaction_active = true if block_given? abort = false begin yield self rescue Exception abort = true raise ensure abort and rollback or commit end end true end