Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
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); };
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