4 ms·
If you want to try out something cool, check out https://github.com/sqlc-dev/sqlc https://github.com/sqlc-dev/sqlc It's written in Go and it converts your sql
by impulser_ 3y ago
If you want to try out something cool, check out
https://github.com/sqlc-dev/sqlc https://github.com/sqlc-dev/sqlc
It's written in Go and it converts your sql migrations and queries into typesafe code that you use access your database.
It currently has a plugin for Python that's in Beta, but what essentially does something similar to what this post is saying.
https://github.com/sqlc-dev/sqlc-gen-python https://github.com/sqlc-dev/sqlc-gen-python
You write your migrations, and queries and a config file and it does the rest.
- monomers 3y agoThere's a whole family of libraries like that. Yesql is the first I became aware of. The repo has an (incomplete) list of ports to other languages: https://github.com/krisajenkins/yesql#other-languages https://github.com/krisajenkins/yesql#other-languages