-
Notifications
You must be signed in to change notification settings - Fork 19
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
refactor: implement backend based on database #77
Conversation
This also pulls out the generic database logic from Graph and puts it into the common module. Allowing for other modules accessing the database without polluting the "graph" module.
username: "postgres".to_string(), | ||
password: "eggs".to_string(), | ||
host: "localhost".to_string(), | ||
port: 5432, |
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.
(this part of the port-config is probably related to the github-discussions env/vars etc, not a blocker-to-me)
Transaction(&'db DatabaseTransaction), | ||
} | ||
|
||
#[async_trait::async_trait] |
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.
You're right, even with the current layout, a sensible impl of Deref might suffice.
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.
I'm not sure who "you're" is in this case, so what is he right about?
No description provided.