Qx v0.7
Qt Extensions Library
|
Qx features a highly flexible, simple to use, declarative mechanism for querying SQL databases using user structs and other types.
For example, the following SQL table:
can easily be parsed into a list of C++ data structures like so:
Likewise, the structure can used in DML queries to add data to a database:
This system is accessed through the Qx SQL module, predominantly with QX_SQL_STRUCT() et al from qx-sqlquery.h, along with qx-sqlstring.h and qx-sqlinlines.h.
Database access in general is also simplified thanks to Qx::SqlDatabase.
The system still has a ways to go, but is already quite useful for a variety of basic-to-intermediate tasks.
TODO: Make this more complete.