prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 61 forks source link

feat: support postgres application_name #327

Closed jannikkeye closed 2 years ago

jannikkeye commented 2 years ago

This pull request adds support for the application_name query parameter in PostgreSQL connection strings. I'm pretty sure there is more to be added to make this work, any pointers would be appreciated!

Lib tests are passing and I verified the application_name being passed by adding it to the env var and logging it inside the postgres container.

Related Issue on prisma/prisma: https://github.com/prisma/prisma/issues/7804

pimeys commented 2 years ago

No, this should be enough for it to be visible in Prisma. Are you in our public Slack? If yes, ping me so I can help you to test this with the full stack.

pimeys commented 2 years ago

Fixing the clippy stuff here https://github.com/prisma/quaint/pull/328