.Net has a tool (xsd.exe) that can convert C# structure to XML schema.
I don't know whether it can help you.

----- Original Message ----- 
From: "Dan Kennedy" <[EMAIL PROTECTED]>
To: <sqlite-users@sqlite.org>
Sent: Monday, October 17, 2005 4:50 PM
Subject: Re: [sqlite] Question about automatic schema creation from custom 
data-strucutre for persistence storage


> As far as I know C++ has no introspection capability so the answer 
> is probably no. Unless you want to parse your header file yourself,
> or something like that.
> 
> With Java or another high-level programming language that supports 
> introspection it would be possible I think.
> 
> 
> "Rajan, Vivek K" <[EMAIL PROTECTED]> wrote:
> 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 _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
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to