Skip to content

Migtate transcoder's sql to sqlc + pgx #757

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

Open
zoriya opened this issue Jan 4, 2025 · 1 comment
Open

Migtate transcoder's sql to sqlc + pgx #757

zoriya opened this issue Jan 4, 2025 · 1 comment
Milestone

Comments

@zoriya
Copy link
Owner

zoriya commented Jan 4, 2025

sqlc has a way better DX (just look at the auth code).
pgx also has some goodies (like supporting sslmode=prefer so we don't have #750)

@zoriya zoriya added this to the v5.0.0 milestone Jan 4, 2025
@felipemarinho97
Copy link
Contributor

felipemarinho97 commented Jan 11, 2025

This is just my opinion, but I would prefer the transcoder application not to use ORM or any wrapper to access the database, I think it only makes the project more complex.

My last contribution to add new tags to subtitles was simple because it didn't require learning any new technology or paradigm. I simply wrote migrations and adapted SQL code as simple as I would do in any other Go project.

Keep things as simple as possible, it's the Go way of doing things :)

A little copying is better than a little dependency.

I suggest using just pgx alone, it's a great driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants