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.

Tags Database Software Development Code Generators
Licenses GPL
Operating Systems POSIX Linux
Implementation C C++

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  25 Jun 2008 23:09
  • Rrelease-after

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

  • Rrelease-mid
  •  24 Apr 2006 17:23
  • Rrelease-after

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

  • Rrelease-mid
  •  10 Apr 2006 14:21
  • Rrelease-after

Changes: 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'.

  • Rrelease-mid
  •  28 Mar 2006 08:22
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  14 Sep 2005 01:09
  • Rrelease-after

Changes: 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.

No-screenshot

Project Spotlight

ButiFree

Software to play the Catalan card game "la botifarra" online.

No-screenshot

Project Spotlight

SpamBlock

A program that detects and blocks spam on a FreeBSD-based router with ipfw2 and tcpdump.