dennogumi/content/post/2007-12-28-qsql-vs-db-api.markdown
Luca Beltrame 64b24842b8
All checks were successful
continuous-integration/drone/push Build is passing
Update all posts to not show the header text
2021-01-13 00:05:30 +01:00

887 B

author categories comments date slug tags title omit_header_text disable_share wordpress_id
einar
Linux
true 2007-12-28T12:58:40Z qsql-vs-db-api
Linux
programming
python
QSql vs DB-API? true true 358

I've recently begun trying to create GUIs for my Python applications with PyQt, and I can say I'm absolutely loving the toolkit, relatively easy to use and featureful. As I'm trying to create a GUI for some module I wrote that deals with databases (using MySQLdb), I also learnt that Qt has a series of classes for dealing with databases, mainly QSql.

My question, directed to whoever has experience with QSql and the Python DB-API, is: what are the advantages of one approach to the other? I'm leaning towards DB-API because like that I can create modules which work also in command line applications.