-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Make username default to current login name #1024
Comments
Maybe I'll submit a PR for this in following weeks |
ISibboI
added a commit
to ISibboI/rust-postgres
that referenced
this issue
Aug 19, 2023
This mimics the behaviour of libpq and some other libraries (see sfackler#1024). This commit uses the `whoami` crate, and thus goes as far as defaulting the user to the executing process' user name on all operating systems.
lukoktonos
pushed a commit
to readysettech/rust-postgres
that referenced
this issue
Aug 31, 2023
This mimics the behaviour of libpq and some other libraries (see sfackler#1024). This commit uses the `whoami` crate, and thus goes as far as defaulting the user to the executing process' user name on all operating systems.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the way libpq (and other libraries based on it) does this:
At least some third-party libraries not based on libpq do that as well:
I think it would make sense to do it here for compatibility with other libraries.
The text was updated successfully, but these errors were encountered: