Python: Just write SQL
I have been writing a lot more Go this past year. For those not familiar, Go favours a non-ORM, non-query-builder approach to interacting with databases. This comes naturally due to the sql package: A common interface to be used alongside database drivers. It’s very common to see actual SQL in Go, even in large projects. On the other hand, Python does not have anything in the standard library that supports database interaction, this has always been a problem for the community to solve. There are many ORMs and query builders for Python: You can of course just take your favourite adapter and write SQL in Python (which is what we’ll be doing!), but I think most developers will agree that, as soon as you need to interact with a database, it is far more probable to immediately reach for an ORM like SQLAlchemy. (This is not to say Go doesn’t have popular ORMs, but you’re much more likely to see Go devs leveraging the standard library and database adapters, this is the typical approach new Go
Python: Just write SQL joaodlf.com Python: Just write SQL 10 Aug 2023 I have been writing a lot more Go this past year. For those not familiar, Go favours a non-ORM, non-query-builder approach to interacting with databases. This comes naturally due to the sql package : A common interface to be used alongside database drivers. It's very common to see actual SQL in Go, even in large projects. On the other hand, Python does not have anything in the standard library that supports database interaction, this has always been a problem for the community to solve. There are many ORMs and query builders
Explore this link on the map →saved by
related reading
- Against SQLscattered-thoughts.net
- Here is the reason why SQLAlchemy is so popular. | Towards Data Sciencetowardsdatascience.com
- It's not you, it's SQLstack.convex.dev
- SQLAlchemy - Quick Guidetutorialspoint.com
- SQL style guide by Simon Holywellsqlstyle.guide
- python - Numpy Array to SQL Table - Stack Overflowstackoverflow.com
- SQL as APIvalentin.willscher.de
- Databases are Fucking Stupid | Probably Danceprobablydance.com
- LLMs shouldn’t write SQL - by Benn Stancil - benn.substackbenn.substack.com
- Redirecting...stephendavidwilliams.com
- Databases in 2024: A Year in Review // Blog // Andy Pavlo - Carnegie Mellon Universitycs.cmu.edu
- SQL (Relational) Databases - FastAPIfastapi.tiangolo.com