Methods
Instance Public methods
create_savepoint(name = current_savepoint_name)
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 10
def create_savepoint(name = current_savepoint_name)
execute("SAVEPOINT #{name}")
end
🔎 See on GitHub
current_savepoint_name()
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 6
def current_savepoint_name
current_transaction.savepoint_name
end
🔎 See on GitHub
exec_rollback_to_savepoint(name = current_savepoint_name)
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 14
def exec_rollback_to_savepoint(name = current_savepoint_name)
execute("ROLLBACK TO SAVEPOINT #{name}")
end
🔎 See on GitHub
release_savepoint(name = current_savepoint_name)
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 18
def release_savepoint(name = current_savepoint_name)
execute("RELEASE SAVEPOINT #{name}")
end
🔎 See on GitHub