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

An example for using pgwire as proxy #138

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

An example for using pgwire as proxy #138

wants to merge 2 commits into from

Conversation

sunng87
Copy link
Owner

@sunng87 sunng87 commented Dec 10, 2023

This example is going to demonstrate how to use pgwire + tokio_postgres as a proxy of postgresql. I just implemented simple_query subprotocol for referencing. For a complete proxy solution, we will need to add some client side support for pgwire to drop tokio_postgres in proxy scenario.

@kernel-loophole
Copy link

@sunng87 i wanted to create a small Rust proxy that will allow me to safely expose the Postgres database.how can i do this using this library

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