Open evgmoskalenko opened 4 years ago
Hi! Easy-peasy. https://github.com/encode/databases/blob/master/databases/backends/postgres.py#L43
The workaround is to Database(dsn, **kwargs)
and dsn.rsplit("&?")
.
Thanks.. I Try. :-)
Hello,
You can set application_name like this when creating the Database object:
_database = Database(DATABASE_URL, server_settings={'application_name': '<YOUR_APP_NAME>'})
This works, at least if you're using asyncpg library.
I found this in one of their issues: https://github.com/MagicStack/asyncpg/issues/798
Happy coding! =)
Hello, Could you tell me please, why I can't add application_name via DSN?
My DSN looks like:
Version: