christianparpart / Lightweight

thin and lightweight, fast, ODBC API wrapper for modern C++ uses
5 stars 1 forks source link

Tool `ddl2cpp` translate an existing database schema into C++ structs #36

Closed christianparpart closed 2 months ago

christianparpart commented 2 months ago

Create a tool to connect to a database, fetch the DDL, and translate that to a series of C++ structs, also reflecting their foreign key linkages.

inspirational python script: https://github.com/rbock/sqlpp11/blob/main/scripts/ddl2cpp