View Single Post

  #6 (permalink)  
Old 04-23-2008
jkn
 
Posts: n/a
Default Re: Reading a MySQL dump file in C/C++?

Hi Kees

> >I have a need to read the database using C or C++ into a set of
> >structures on which I can then perform a limited number of lookups. I
> >can't use any MySQL libraries.

>
> Hm, then why ask here?


Becauue I assumed that knowledge of MySQL may extend to 'knowledge of
things allied to MySQL'. At least, that's how it works in my domains
of knowledge ;-)

[...]
> I don't know of a framework that does this for you.
> If I were you I would write an awk script and pipe the
> resulting statements into sqlite (yes, I'm promiscuous,
> there's more in life than MySQL).


Err, exactly - see above! ;-P

Thanks - I know awk (a little), although I use Python (which also uses
sqlite) more myself.

[useful example snipped]

As it goes I've been able to write my own C++ to parse it. Hurrah! but
thanks anyway.

Cheers
J^n
Reply With Quote