Questions tagged [tokio-postgres]

An asynchronous, pipelined, PostgreSQL client for rust.

https://docs.rs/tokio-postgres/0.7.2/tokio_postgres/

33 questions
0
votes
1 answer

Rust and tokio::postgresql, use of moved value

I am working on this kind of code: database.rs use tokio::task::JoinHandle; use tokio_postgres::{Client, Connection, Error, NoTls, Socket, tls::NoTlsStream}; use crate::secret; pub struct DatabaseConnection { pub client: Client, pub…
Alex Vergara
  • 1,766
  • 1
  • 10
  • 29
0
votes
0 answers

TLS encrypted PostgreSQL connection not possible

I would like to establish a TLS encrypted connection to a PostgreSQL 11 database using Tokio as the framework, Deadpool as the connection pooler and rustls as TLS library. I developed/modified the following code: let pool = if let Some(ca_cert) =…
ZPascal
  • 323
  • 2
  • 4
  • 14
0
votes
1 answer

Actix server fails to connect to Postgres when using TLS via deadpool-postgres

I have a web app. I have developed out some basic features in production. I have put it into a live environment, once on Heroku and later on DigitalOcean. In live, the connection to the Postgres database needs to use TLS. In all permutations of code…
MBuscemi
  • 102
  • 8
1 2
3