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

support ssl connections #16

Open
joprice opened this issue Oct 22, 2023 · 0 comments
Open

support ssl connections #16

joprice opened this issue Oct 22, 2023 · 0 comments

Comments

@joprice
Copy link

joprice commented Oct 22, 2023

I found that I couldn't use omigrate with cockroachdb, as it enforces ssl connections. It looks like pgx added ssl support, but only for the async driver. Since I was already using caqti in my project and was able to connect, I tried converting the postgres driver to it and have a working prototype: main...joprice:omigrate:caqti. There's a few pieces missing like not splitting statements on down commands, but I was able to successfully run it against a cockroachdb instance. Would there be any downsides to switching to this driver to allow for ssl connections? Or adding this implementation as a third option, perhaps by passing an arbitrary scheme (e.g. postgresql-ssl) that gets mapped back to postgresql when connecting?

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

No branches or pull requests

1 participant