LiteSQL is a C++ library that integrates C++ objects tightly to a relational database and thus provides an object persistence layer. LiteSQL supports SQLite3, PostgreSQL, and MySQL as backends. LiteSQL creates tables, indexes, and sequences to database and upgrades schema when needed. In addition to object persistence, LiteSQL provides object relations which can be used to model any kind of C++ data structures. Objects can be selected, filtered, and ordered using a template- and class-based API with type checking at compile time.
| Tags | Database API Software Development Libraries Code Generators |
|---|---|
| Licenses | LGPL |
| Operating Systems | Windows Windows POSIX |
| Implementation | C++ SQL |
Recent releases


Changes: Many small but important bugfixes were made. A litesql-config utility, pkg-config support, and RPM packaging headers were added.


Changes: A namespace attribute is now required. Relation field type names are now consistent with object field type names (they start with an uppercase letter). Litesql-gen no longer rejects relations with two or more objects with no relation handles. Better tests for backend databases were added to configure.ac.


Changes: Relation handling code has been improved. A configure script has been added using autoconf and automake. A Python code generator has been replaced with a C++ one (litesql-gen). Scons dependencies have been removed. Debian packaging headers have been added. A Graphviz target has been added to litesql-gen. Date, time, datetime, and boolean types have been added.


Changes: Macro hacks were removed, as an XML database definition file and code generator are used now. N-ary relations (relations that link three or more objects) are supported. Support was added for relation attributes (ordered relations are now possible). Set operations were added: intersect, union_, except. Small changes were made under the hood.


No changes have been submitted for this release.
A project to increase the surveillance of Swedish parliament members.