Skip to content

Commit

Permalink
implement Transaction SavePoints for all supported RDBMS's
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jul 26, 2023
1 parent a15c195 commit 8c947ce
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 215 deletions.
Expand Up @@ -156,6 +156,10 @@ public override string ToCreateSchemaStatement(string schemaName)
var sql = $"CREATE SCHEMA [{GetSchemaName(schemaName)}]";
return sql;
}

public override string ToCreateSavePoint(string name) => $"SAVE TRANSACTION {name}";
public override string ToReleaseSavePoint(string name) => null;
public override string ToRollbackSavePoint(string name) => $"ROLLBACK TRANSACTION {name}";

public override bool DoesTableExist(IDbCommand dbCmd, string tableName, string schema = null)
{
Expand Down

0 comments on commit 8c947ce

Please sign in to comment.