MidgardSqlQuerySelectData

MidgardSqlQuerySelectData

Synopsis

                    MidgardSqlQuerySelectData;
struct              MidgardSqlQuerySelectDataClass;
MidgardSqlQuerySelectData * midgard_sql_query_select_data_new
                                                        (MidgardConnection *mgd);
void                midgard_sql_query_select_data_add_column
                                                        (MidgardSqlQuerySelectData *self,
                                                         MidgardSqlQueryColumn *column);
MidgardSqlQueryColumn ** midgard_sql_query_select_data_get_columns
                                                        (MidgardSqlQuerySelectData *self,
                                                         guint *n_objects,
                                                         GError **error);

Object Hierarchy

  GObject
   +----MidgardQueryExecutor
         +----MidgardSqlQuerySelectData

Implemented Interfaces

MidgardSqlQuerySelectData implements MidgardExecutable, MidgardValidable and MidgardQuerySelector.

Properties

  "connection"               MidgardConnection*    : Write / Construct Only

Description

Details

MidgardSqlQuerySelectData

typedef struct _MidgardSqlQuerySelectData MidgardSqlQuerySelectData;


struct MidgardSqlQuerySelectDataClass

struct MidgardSqlQuerySelectDataClass {
	MidgardQueryExecutorClass parent;
};


midgard_sql_query_select_data_new ()

MidgardSqlQuerySelectData * midgard_sql_query_select_data_new
                                                        (MidgardConnection *mgd);

mgd :

MidgardConnection instance

Returns :

new MidgardSqlQuerySelectData instance or NULL on failure

Since 10.05.6


midgard_sql_query_select_data_add_column ()

void                midgard_sql_query_select_data_add_column
                                                        (MidgardSqlQuerySelectData *self,
                                                         MidgardSqlQueryColumn *column);

Adds a new column, which will be available in MidgardSqlQueryResult

self :

MidgardSqlQuerySelectData instance

column :

MidgardSqlQueryColumn to add

Since 10.05.6


midgard_sql_query_select_data_get_columns ()

MidgardSqlQueryColumn ** midgard_sql_query_select_data_get_columns
                                                        (MidgardSqlQuerySelectData *self,
                                                         guint *n_objects,
                                                         GError **error);

Returns all collumns added to given instance.

self :

MidgardSqlQuerySelectData instance

n_objects :

pointer to store number of returned columns

error :

pointer to store returned error

Returns :

array of MidgardSqlQueryColumn objects or NULL. [element-type MidgardSqlQueryColumn][array length=n_objects][transfer full]

Since 10.05.6

Property Details

The "connection" property

  "connection"               MidgardConnection*    : Write / Construct Only

Pointer to a connection, MidgardSqlQuerySelectData has been initialized for