/// <inheritdoc/> public override async ValueTask CommitTransactionAsync(Transaction transaction) { pendingTransaction = null; if (connection.ActiveTransaction != null && !transactionIsExternal) { await driver.CommitTransactionAsync(Session, connection).ConfigureAwait(false); } if (!connectionIsExternal) { await driver.CloseConnectionAsync(Session, connection).ConfigureAwait(false); } }