Skip to content

Not a real issue but question  #33

Description

@saurabh256

Hi @snamiki1212 - first of all this is really a nice project and provides lot of insights to others starting learning rust web development. I am pretty new to rust and coming from Java back ground.

I see that connection pool is kept passing from function to function. I understand that most of the cases and examples are similar. e.g https://github.com/snamiki1212/realworld-v1-rust-actix-web-diesel/blob/main/src/app/features/article/entities.rs#L47

However , what is stopping us to inject this as app state and use connection pools from context. It may not be idiomatic rust but architecture wise much cleaner.

Regards
Saurabh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions