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 Mac OS X |
| Implementation | C++ SQL |
Recent releases


Release Notes: This release adds support for the Oracle backend (ocilib). There are some bugfixes. Visual Liteql has been installed in Menu.


Release Notes: This release adds support for bigint field data type.


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


Release Notes: 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.


Release Notes: 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.