Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(data-api): Fixed how data api driver uses and reuses a client #6869

Merged
merged 5 commits into from
Nov 11, 2020
Merged

fix(data-api): Fixed how data api driver uses and reuses a client #6869

merged 5 commits into from
Nov 11, 2020

Conversation

ArsenyYankovsky
Copy link
Contributor

Now each queryRunner will have it's own client which will allow it to handle transactions correctly.

Copy link
Contributor

@imnotjames imnotjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you removed the client from the AuroraDataApiDriver but not the postgres one.

Do we need the client on the postgres driver still?

@imnotjames
Copy link
Contributor

Oof, because this is the aurora stuff we don't have tests for it.

Also, is there a related github issue?

@ArsenyYankovsky
Copy link
Contributor Author

Looks like you removed the client from the AuroraDataApiDriver but not the postgres one.

Do we need the client on the postgres driver still?

Yeah it runs a couple of statements like enabling postgres extensions.

@ArsenyYankovsky
Copy link
Contributor Author

Oof, because this is the aurora stuff we don't have tests for it.

Also, is there a related github issue?

I have tests in the driver repository. This is a fix for a bug that was reported there as well (ArsenyYankovsky/typeorm-aurora-data-api-driver#5)

@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 26, 2020
@imnotjames
Copy link
Contributor

Given we can't really test this, I think it's good to merge in. 🤷

@imnotjames imnotjames merged commit 6ce65fb into typeorm:master Nov 11, 2020
edcolvin pushed a commit to edcolvin/typeorm that referenced this pull request Nov 12, 2020
…peorm#6869)

Now each queryRunner will have it's own client which will allow it to handle transactions correctly.
nebkat pushed a commit to nebkat/typeorm that referenced this pull request Jan 9, 2021
…peorm#6869)

Now each queryRunner will have it's own client which will allow it to handle transactions correctly.
nebkat pushed a commit to nebkat/typeorm that referenced this pull request Jan 9, 2021
…peorm#6869)

Now each queryRunner will have it's own client which will allow it to handle transactions correctly.
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
…peorm#6869)

Now each queryRunner will have it's own client which will allow it to handle transactions correctly.
@SethVerishop
Copy link
Contributor

SethVerishop commented Mar 9, 2021

@ArsenyYankovsky would have been nice to keep the transactionId inside queryRunner instead of client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted label hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants