Closed ISibboI closed 1 year ago
diesel
is based off of libpq which will default to the the OS-level username if it is not specified in the connection string, but tokio-postgres currently does not.
I see thanks. Would be nice if the behavior of libpq would be replicated :)
Yeah I think that's a reasonable feature to add.
Is this similar to this issue https://github.com/sfackler/rust-postgres/issues/1024?
Yes, this is a duplicate.
I am connecting to a database with the url:
The connection works when using the
PgConnection
exposed bydiesel
, but not when using theAsyncPgConnection
exposed bydiesel-async
, which usestokio-postgres
.With async, I get:
According to
cargo tree
, I am usingtokio postgres v0.7.8
.