-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: DB driver and cache #15
Conversation
Signed-off-by: Pascal van Leeuwen <[email protected]>
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.
@commoddity Great start!
I did a high-level preliminary review (see screenshot below) but just wanted to pause it here because I have some questions w.r.t to the naming decisions.
Lmk if it makes sense or if we need to sync over a call.
Co-authored-by: Daniel Olshansky <[email protected]> Signed-off-by: Pascal van Leeuwen <[email protected]>
ac0cfdd
to
581a18b
Compare
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.
@commoddity REALLY love how this is shaping up. I think we're almost there and this should be my last round of a lot of comments.
We're close and ty for bearing with the iterations 🙏
Co-authored-by: Daniel Olshansky <[email protected]> Signed-off-by: Pascal van Leeuwen <[email protected]>
@Olshansk Have addressed or responded to all review comments. PTAL. We're almost there. 🙂 |
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.
Not a review - just publishing my comments on previous threads and will dive into a full review shortly.
@adshmh Would appreciate if you could review this as well. |
Signed-off-by: commoddity <[email protected]>
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.
LGTM! Let's just get a 👍 from @adshmh as well before merging it in
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.
Pre-approving with one ask:
Please add TODOs to address the following:
- Our overall Authentication solution.
- Alternatives to DBs as source of truth: e.g. config files, API servers, etc.
Related to #11
PR to add a Postgres database driver using SQLC to generate Go code from SQL files:
https://sqlc.dev/
This is the first prerequisite to allow associating a service request with a user for the purposes of metering, billing, rate limiting, user settings, etc.
This PR adds the following:
db/driver
package containing Postgres driverdb
package containing local cache of user datauser
package containing theGatewayEndpoint
struct