Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
MidgardQueryExecutor; struct MidgardQueryExecutorClass; gboolean midgard_query_executor_set_constraint (MidgardQueryExecutor *self
,MidgardQueryConstraintSimple *constraint
); gboolean midgard_query_executor_set_limit (MidgardQueryExecutor *self
,guint limit
); gboolean midgard_query_executor_set_offset (MidgardQueryExecutor *self
,guint offset
); gboolean midgard_query_executor_add_order (MidgardQueryExecutor *self
,MidgardQueryHolder *holder
,const gchar *type
); gboolean midgard_query_executor_add_join (MidgardQueryExecutor *self
,const gchar *join_type
,MidgardQueryHolder *left_holder
,MidgardQueryHolder *right_holder
); guint midgard_query_executor_get_results_count (MidgardQueryExecutor *self
);
GObject +----MidgardQueryExecutor +----MidgardQuerySelect +----MidgardSqlQuerySelectData
struct MidgardQueryExecutorClass { GObjectClass parent; /* virtual methods */ gboolean (*set_constraint) (MidgardQueryExecutor *self, MidgardQueryConstraintSimple *constraint); gboolean (*set_limit) (MidgardQueryExecutor *self, guint limit); gboolean (*set_offset) (MidgardQueryExecutor *self, guint offset); gboolean (*add_order) (MidgardQueryExecutor *self, MidgardQueryHolder *holder, const gchar *type); gboolean (*add_join) (MidgardQueryExecutor *self, const gchar *join_type, MidgardQueryHolder *left_holder, MidgardQueryHolder *right_holder); guint (*get_results_count) (MidgardQueryExecutor *self); /* signals */ void (*execution_start) (GObject *object); void (*execution_end) (GObject *object); /* signals IDs */ guint signal_id_execution_start; guint signal_id_execution_end; };
gboolean midgard_query_executor_set_constraint (MidgardQueryExecutor *self
,MidgardQueryConstraintSimple *constraint
);
Set constraint object which will be used for query execution
|
MidgardQueryExecutor instance |
|
MidgardQueryConstraintSimple instance |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
gboolean midgard_query_executor_set_limit (MidgardQueryExecutor *self
,guint limit
);
|
MidgardQueryExecutor instance |
|
execution limit |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
gboolean midgard_query_executor_set_offset (MidgardQueryExecutor *self
,guint offset
);
|
MidgardQueryExecutor instance |
|
execution offset |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
gboolean midgard_query_executor_add_order (MidgardQueryExecutor *self
,MidgardQueryHolder *holder
,const gchar *type
);
|
MidgardQueryExecutor instance |
|
MidgardQueryHolder instance |
|
execution order |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
gboolean midgard_query_executor_add_join (MidgardQueryExecutor *self
,const gchar *join_type
,MidgardQueryHolder *left_holder
,MidgardQueryHolder *right_holder
);
guint midgard_query_executor_get_results_count
(MidgardQueryExecutor *self
);
|
MidgardQueryExecutor instance |
Returns : |
number of objects or records returned from execution |
Since 10.05
"constraint"
property"constraint" MidgardQueryConstraintSimple* : Read
Constraint object which has been set to given executor instance
"resultscount"
property"resultscount" guint : Read
Number of records matched in query.
Default value: 0
"execution-end"
signalvoid user_function (MidgardQueryExecutor *midgardqueryexecutor,
gpointer user_data) : No Hooks
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"execution-start"
signalvoid user_function (MidgardQueryExecutor *midgardqueryexecutor,
gpointer user_data) : No Hooks
|
the object which received the signal. |
|
user data set when the signal handler was connected. |