Projects / SQL C++ code generator

SQL C++ code generator

The SQL C++ code generator (sql2class) utility is a code generation tool to convert SQL output to simple C++ classes. It supports MySQL and Sqlite. For each database table, one C++ class will be generated containing member variables for each column, as well as methods to read / insert / update records and also return the record as XML.

Operating Systems

Recent releases

  •  25 Jun 2008 23:09

    Release Notes: One crash bug due to unsafe pointer use has been fixed.

    •  25 Apr 2006 00:23

      Release Notes: Fixes one parse problem in index parsing and one buffer overrun.

      •  10 Apr 2006 21:21

        Release Notes: Classes are now generated with get/set methods for field data. To get the old behaviour, a '-getset' option has been added that disables generation of get/set methods. Name mangling of table and column names can be turned off with the new option '-mangle'.

        •  28 Mar 2006 16:22

          Release Notes: MySQL set and enum support are working again. A header comment block was added to each file, containing the exact command line and sql2class version used to generate the file. A Win32 project file added for VS6.

          •  14 Sep 2005 08:09

            Release Notes: An SQL parsing issue was fixed, having to do with unique indexes. A tutorial covering sql2class use together with mysqlwrapped/sqlitewrapped libraries has been added.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.