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

refactor(persistence/sql): move connection to context to enable transactions #254

Merged
merged 2 commits into from
Feb 17, 2020

Conversation

zepatrik
Copy link
Member

Related issue

Proposed changes

Checklist

  • I have read the contributing guidelines
  • I have read the security policy
  • I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security
    vulnerability, I confirm that I got green light (please contact security@ory.sh) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation within the code base (if appropriate)
  • I have documented my changes in the developer guide (if appropriate)

Further comments

@zepatrik zepatrik requested a review from aeneasr February 17, 2020 17:19
@@ -146,3 +153,53 @@ func TestPersister(t *testing.T) {
t.Logf("DSN: %s", dsn)
}
}

func getErr(args ...interface{}) error {
Copy link
Member

Choose a reason for hiding this comment

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

Wow this is actually really useful. We should probably add that to ory/x!

@aeneasr aeneasr merged commit 6ace1ee into master Feb 17, 2020
@zepatrik zepatrik deleted the add-persister-transactions branch February 18, 2020 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants