by adriancooney · 6y ago · 0 comments
Another one in a similar vein with strict typing and really nice SQL interpolation for Postgres: https://github.com/gajus/slonik
- better separation of concerns
- better integration with SQL tools (syntax highlighting, autocompletion, etc)
- way easier to run/test/debug your queries into a database client
- better languages analysis of your projects (e.g. % of SQL in your GitHub/GitLab repo)
--
If anyone interested in applying this approach in your Python projects, I recommend this package: https://github.com/mcfunley/pugsql