GSList *lst_tables;
GSList *lst_fields;
+ GError *error;
+
gchar *sql;
GdaDataModel *dm;
- const GValue *gval;
- GError *error;
+ guint row;
+ guint rows;
- GdaStatement *stmt;
GdaDataModelIter *iter;
+
+ GdaStatement *stmt;
+
+ const GValue *gval;
GdaMetaTableColumn *column;
GdaSet *params;
GdaHolder *holder;
g_free (sql);
if (dm != NULL)
{
- g_printf ("\tTable: %s\n",
+ g_printf ("\tTable: %s",
table->name);
iter = gda_data_model_create_iter (dm);
error = NULL;
gda_statement_get_parameters (stmt, ¶ms, &error);
+ row = 0;
+ rows = gda_data_model_get_n_rows (dm);
+
while (gda_data_model_iter_move_next (iter))
{
+ g_printf ("\r\tTable: %s - %d of %d",
+ table->name,
+ ++row,
+ rows);
+
for (lst_fields = table->fields; lst_fields; lst_fields = lst_fields->next)
{
column = (GdaMetaTableColumn *)lst_fields->data;
continue;
}
}
+ g_printf ("\n");
g_object_unref (params);
g_object_unref (stmt);