Re: [gnome-db] import from csv



Il giorno gio 28 ott 2010 08:26:09 CEST, Andrea Zagli ha scritto:
[...]

i just tried the sample in git repository (attached) and i got the same results

can be windows the problem? or the libgda version that i use? on the weekend i'll try both

thanks
#include <libgda/libgda.h>

int
main (int argc, char **argv)
{
	gda_init ();

	GdaSet *plist = gda_set_new_inline (1, "TITLE_AS_FIRST_LINE", G_TYPE_BOOLEAN, TRUE);
	GdaDataModel *city_model = gda_data_model_import_new_file ("city.csv", TRUE, plist);
	g_object_unref (plist);

	gda_data_model_dump (city_model, stderr);

	g_object_unref (city_model);

	return 0;
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]