SQL / C++ Tutorial using sqlwrapped
10. "Do I really have to write code to do all this?"
PreviousNextIndex
Well, since you ask... no not really.
Database code fits perfectly with the idea of automatic code generation.
There are only so many things you usually want to do with the data in a
database, that you can fit much of the desired functionality in code
automatically generated.
Available separately is a C++ code generator that accepts MySQL / sqlite3
sql table descriptions. For each table a C++ class is generated, with
methods to manipulate the data in that table.
This tutorial will now show how to use sql2class to generate source code
that can perform all tasks shown up until now.
PreviousNext