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
Add AmqpDsn
class
#3254
Add AmqpDsn
class
#3254
Conversation
Will update once finished - haven't looked at the CONTRIB yet. Want to test locally to see if it works.
The image is from #2049 (review). I don't understand what I'm supposed to add, as there's a description talking about |
docs/examples/settings_main.py
Outdated
@@ -21,6 +22,7 @@ class Settings(BaseSettings): | |||
|
|||
redis_dsn: RedisDsn = 'redis://user:pass@localhost:6379/1' | |||
pg_dsn: PostgresDsn = 'postgres://user:pass@localhost:5432/foobar' | |||
rabbitmq_dsn: RabbitMqDsn = 'amqp://guest:guest@rabbitmq:5672//' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/
is the default vhost. Should I explain something about it? If yes, where?
please review 😉 |
Hi @Kludex! |
Whatever name suits people better is fine by me. I just want the type for AMPQ. But I can also include the other protocols supported for RabbitMQ. For the two other comments, I'll address later on. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will require quite a lot of renaming I'm afraid, otherwise LGTM.
please update. |
please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM, I'll make those two small changes.
Change Summary
This PR is a continuation of #2049. I've respectfully maintained the commits, and fix the code according to @samuelcolvin previous comments.
I've also changed the name of the class
RabbitmqDsn
toRabbitMqDsn
. As the "MQ" case should follow a similar analogy to "DSN".Checklist
changes/<pull request or issue id>-<github username>.md
file added describing change(see changes/README.md for details)