typedef struct __CoyoteDataSet CoyoteDataSet
 

The CoyoteDataSet object, used by Af-Arch framework as its table representation to be exchange between Af-Arch nodes.

A CoyoteDataSet is a table representation usually get from database queries and returned to Af-Arch client applications.

This type has some special features which makes really fast and efficient.

  • Data can only be added an a secuencial manner, left to right, up to down cell order.
  • It is implemented using dinamically allocated arrays of pointers, with no structure data support.
  • It can only store data in string form, simplifying type handling.
  • Allows indexed access to its data.

Mostly data sent between Af-Arch nodes is based on this data structure. Here is an example about using CoyoteDataSet.

     gboolean test2 (void)  {
           CoyoteDataSet * data_set;

           data_set = coyote_dataset_new ();
        

           coyote_dataset_add (data_set, "test");
           coyote_dataset_add (data_set, "foo");
           coyote_dataset_add (data_set, "bar");

           coyote_dataset_new_row (data_set);
        
           coyote_dataset_add (data_set, "test2");
           coyote_dataset_add (data_set, "foo2");
           coyote_dataset_add (data_set, "bar2");

           coyote_dataset_new_row (data_set);

           coyote_dataset_add (data_set, "test3");
           coyote_dataset_add (data_set, "foo3");
           coyote_dataset_add (data_set, "bar3");

           coyote_dataset_new_row (data_set);

           coyote_dataset_free (data_set);

           return TRUE;
  }