Active Record Connection Adapters Savepoints
Methods
- C
-
- E
-
- R
-
Instance Public methods
create_savepoint(name = current_savepoint_name)
Link
Source:
show
|
on GitHub
def create_savepoint(name = current_savepoint_name)
internal_execute("SAVEPOINT #{name}", "TRANSACTION")
end
current_savepoint_name()
Link
Source:
show
|
on GitHub
def current_savepoint_name
current_transaction.savepoint_name
end
exec_rollback_to_savepoint(name = current_savepoint_name)
Link
Source:
show
|
on GitHub
def exec_rollback_to_savepoint(name = current_savepoint_name)
internal_execute("ROLLBACK TO SAVEPOINT #{name}", "TRANSACTION")
end
release_savepoint(name = current_savepoint_name)
Link
Source:
show
|
on GitHub
def release_savepoint(name = current_savepoint_name)
internal_execute("RELEASE SAVEPOINT #{name}", "TRANSACTION")
end