sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.42k stars 436 forks source link

Connect via AsyncWrite+AsyncRead #1088

Closed markdj-vdb closed 8 months ago

markdj-vdb commented 8 months ago

Hi!

Thank you for the postgres library!

By using kube-rs I can port forward to my postgres database yield a socket of a AsyncRead + AsyncWrite. Is there any possibility to setup a client which accepts this?

markdj-vdb commented 8 months ago

I think you should be able to do this with tokio_postgres::connect_raw .. however that seems to be private. Should we make this public?

Edit: it's available on tokio_postgres::Config !! Closing this :)