Hello- 

 

Has anyone had experience with automatically creating schema from a
custom data-structure for persistence storage using SQLite? So, in my
C/C++ program I have the following type of data-structure:

 

struct _trace {

  std::string           name;  

  std::string           prop;

  std:string            object; 

  int                      a; 

  double                b; 

}; 

 

std::vector <struct _trace> _myPath; 


Now, let's say I want to write and read _myPath data-structure
(persistence) in SQLite database. 

 

My questions:

  - Is there a mechanism to dynamically create a schema on-the-fly from
the data-structure? 

  - Essentially a capability to store any custom data-structure into
SQLite data-base by automatic creation of schema for the data-structure

 

Rajan

 

 

Reply via email to