Path: redb-route/tests/redb.Route.Tests.Sql/Batch/Fakes/SavepointBehavior.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests.Sql/Batch/Fakes/SavepointBehavior.cs
----
namespace redb.Route.Tests.Sql.Batch.Fakes;
/// How the fake transaction answers savepoint calls.
internal enum SavepointBehavior
{
/// The base behaviour: Save throws .
Unsupported,
/// Save, release and rollback-to-savepoint succeed.
Works,
/// Save succeeds; rolling back to the savepoint fails — the server already ended the transaction.
RollbackToSavepointFails,
}