Reading a MySQL dump file in C/C++?
Hi all
I have an textual dump of a database that I believe was created
from MySQL. The format is something like:
table = wire
size = 16
id_min = 39
id_max = 273
action;id;name;number;begin;height;weight;board;fi nal;turret
A;39;113;113;50;1;;;;76
A;40;114;114;50;1;;;;88
A;41;118;118;50;1;;;;73
A;42;120;120;50;1;;;;82
(There are a series of these tables, and I've changed the names).
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.
I realise this is going the long way about things in some ways, and I
can at a pinch simply scan this file using 'Raw C' and build up my own
structures. But I imagine that this sort of thing has been done before
and wonder if there might be a framework out there that I could use to
assist me with this. (Answers of 'install MySQL' or similar not
helpful, sorry ;-o ).
Thanks for any suggestions.
Regards
Jon N
|