1
0
Fork 0
This repository has been archived on 2021-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
dennogumi.org-archive/_posts/2007-12-28-qsql-vs-db-api.markdown

860 B

author comments date layout slug title wordpress_id categories tags
einar true 2007-12-28 12:58:40+00:00 page qsql-vs-db-api QSql vs DB-API? 358
Linux
Linux
programming
python

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.