[gnome-db] GdaQuery type insert... How to?



Could you helpme in a schematic code to how create a GdaQuery that make an INSERT command?

For now I'm doing this:

query = gda_query_new()
target = gda_query_target_new(query, "table name")  // I'm using the name in an Dict
gda_query_add_target(query, target)

Now how do I get the actual fields in the table "table name"? Can do this?

table_fields = gda_entity_get_all_fields(GDA_ENTITY(query))

while(list_fields) {
   GdaEntity *field = (GdaEntity*) list_fields->data
  
   // And Now? Do I need Entities or QueryEntities or QueryField or QueryFieldField

}

Could you talk about the Diferences betwean a GdaEntity, QueryEntities, QueryField and QueryFieldField?

Could you explain how a Query Object works and what it need to work?

--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los cuates: LIBRE)

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