From: Brian B. <ca...@um...> - 2000-03-12 18:40:20
|
Hi all, I've created a data export program 'mdb-export' which is in CVS now. The current version exports a CSV (comma seperated value) stream to stdout. There are some fairly large changes in libmdb to support this: The binding routines are finished look at mdb-export.c or mdb_data_dump() for an example of how to bind values and loop on data rows. To do this, I changed the columns array from GArray to GPtrArray and updated schema.c to use this as well. I ifdef'd a bunch of debugging stuff in data.c change the define MDB_DEBUG to 1 to re-enable. mdb-export will have support for different delimiters and stuff but the current version doesn't in its first pass. Brian Now for a teaser: [camber@cyrix166 util]$ ./mdb-export /home/root/soluti~1.mdb ExampleTopics TopicID,Description,SortOrder,Type 1,"Build a Microsoft Windows interface.",1,"General" 2,"Work with forms and controls.",3,"Forms" 3,"Work with combo boxes, list boxes, subforms, and subreports.",4,"Forms" 4,"Query by form.",5,"Queries" 6,"Sample reports.",8,"Reports" 7,"Control what you print on reports.",10,"Reports" 8,"Calculate totals on reports.",11,"Reports" 9,"Use multiple databases.",12,"General" 11,"Sample forms.",2,"Forms" [camber@cyrix166 util]$ |