4 ms·
Same, I really like this approach. Some of the benefits are: - better separation of concerns - better integration with SQL tools (syntax highlighting, autocom
by ggregoire 6y ago
Same, I really like this approach. Some of the benefits are:
- 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 https://github.com/mcfunley/pugsql