3 ms·
As soon as you 'get' MySQLdb, I recommend moving onto an ORM like SQLAlchemy. Among its advantages: * You can easily change database engines without rewriting
by RyanMcGreal 17y ago
As soon as you 'get' MySQLdb, I recommend moving onto an ORM like SQLAlchemy. Among its advantages:
* You can easily change database engines without rewriting all your queries
* SQLAlchemy has built-in protection from SQL injection attacks.
* You can define your database tables and relations once (in SQLAlchemy) and it will create the database for you if it doesn't already exist.
- mgrouchy 17y agoVery neat, I had heard of SQLAlchemy before but have never tried it, looks like going forward I will have to give it a try.