Re: [gnome-db] import from csv
Andrea Zagli <[email protected]>
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ gnome-db-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-db-list
main.c
(text/x-c, 363 B)
#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;
}