mfenniak / pg8000

A Pure-Python PostgreSQL Driver
http://pythonhosted.org/pg8000/
Other
222 stars 55 forks source link

Get the current OS user #141

Closed phdru closed 5 years ago

phdru commented 7 years ago

If user is None and host is None and unix_sock is not None assume user to be the current OS user as returned by getpass.getuser().

tlocke commented 5 years ago

We have had requests like this before, but pg8000 is deliberately a minimal implementation, and so we leave it to the user of the library to work out the user parameter.