[Qt-interest] RFC : QDjango, a Qt-based C++ ORM

Esdras Beleza listas at esdrasbeleza.com
Thu Jun 3 20:27:08 CEST 2010


On 3 June 2010 13:42, Jeremy Lainé <jeremy.laine at bolloretelecom.eu> wrote:

> Hello,
>
> I have been working on an opensource (LGPL) ORM for Qt with the following
> design goals:
>
> * tight integration with Qt's Meta Object System, to be able to simply
> declare database
> fields in models using Q_PROPERTY
>
> * the ability to create database tables automatically from the model
> declaration
>
> * a robust queryset API, with the ability to express complex WHERE clauses
> using C++'s
> "&&" and "||" operators, and with lazy querysets (i.e. you only hit the
> database once you
> start reading results)
>
> * (optional) integration with QtScript, so that you can access your models
> from QtScript
>
> I have drawn extensive inspiration from Django's [1] python ORM API, which
> is why the
> project's name is "QDjango" (unless someone suggests a better name!).
>
> The basics are all in place, it is possible to declare models, create
> database tables, and
> perform queries. So far I have tested QDjango against the QSQLITE and
> QMYSQL plugins,
> though support for additional database types should not be hard. I have
> added a full test
> suite to QDjango to ease this task.
>
> QtScript support is not yet complete, but I have added a basic
> "qdjango-console" command
> line tool which gives you an interactive prompt to interact with database
> models (see
> tests/main.js for an example). Loading additional models can be achieved
> using QtScript
> plugins.
>
> In order to make this ORM as usefull as possible to the community, I would
> very much
> welcome comments on the API, or use cases which you feel are note
> addressed. On the
> project homepage [2] you can find the source code, examples and API
> documentation [3].
>
> I look forward to hearing from you!
>
> Jeremy
>
>
>

Jeremy,


Looks like a very good idea, but I'd change the name. Since Django is a
complete web development database (with a complete MVC implementation),
"QDjango" would give an idea of being a complete MVC solution, not only the
ORM layer.


Regards,


Esdras

--
http://www.esdrasbeleza.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100603/6d0be93b/attachment.html 


More information about the Qt-interest-old mailing list