Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A good ORM to use with qt4 (c++) ? (Django like...)

Tags:

c++

qt4

Does anyone have a recommendation for an ORM for qt4 (c++)? (Like a Django ORM).

like image 295
Lauro Oliveira Avatar asked Jun 17 '10 18:06

Lauro Oliveira


People also ask

What ORM use in Django?

ORM is an acronym for the object-relational mapper. The ORM's main goal is to transmit data between a relational database and application model. The ORM automates this transmission, such that the developer need not write any SQL. ORM, as from the name, maps objects attributes to respective table fields.

Is Django written in C?

Django is only Python, it has no C code.

What is Django ORM object?

One of the most powerful features of Django is its Object-Relational Mapper (ORM), which enables you to interact with your database, like you would with SQL. In fact, Django's ORM is just a pythonical way to create SQL to query and manipulate your database and get results in a pythonic fashion.


1 Answers

I would suggest you take a look at the QDjango ORM, it might be just what you are looking for. This C++ ORM only depends on Qt and builds upon Qt's Meta-Object System to provide introspection. On top of the basic create/update/delete operations at the model level, it provides a queryset template class (modeled after django's querysets) which allows to build fairly complex lookups.

Optional QtScript support is also provided, so you can access your models and perform database queries from scripts.

like image 94
Jeremy Avatar answered Oct 28 '22 12:10

Jeremy