[Qt-interest] QtMonoDB table model
Martin Holst Swende
martin at swende.se
Sat Dec 4 22:07:51 CET 2010
Hi list,
I have noticed that Qt have extensive support for SQL databases, and I
am thinking especially of SQLTableModel. I have a project where I am
using a MongoDB [1] which is not based on SQL. Is there anyone who have
implemented a specially suited model for that?
Currently, I am using a standard tablemodel which does some lookups now
and then, but I am guessing that the sqltablemodel is smarter than that,
and uses e.g cursors in a more clever way (instead of fetching N things
into memory).
I don't want to reinvent the wheel, and I think that a MongoDBTableModel
could probably reuse a lot from the SQL-libraries. Where can I find the
source code for them? I am a bit new to the c-side of Qt (coming
straight from PyQt and have never written a line of "pure" Qt.)
Regards,
Martin Holst Swende
[1] http://www.mongodb.org/ : MongoDB (from "humongous") is a scalable,
high-performance, open source, document-oriented database
More information about the Qt-interest-old
mailing list