Top | ![]() |
![]() |
![]() |
![]() |
XbQuery * | xb_query_new () |
XbQuery * | xb_query_new_full () |
const gchar * | xb_query_get_xpath () |
guint | xb_query_get_limit () |
void | xb_query_set_limit () |
XbQueryFlags | xb_query_get_flags () |
void | xb_query_set_flags () |
gboolean | xb_query_bind_str () |
gboolean | xb_query_bind_val () |
XbQuery * xb_query_new (XbSilo *silo
,const gchar *xpath
,GError **error
);
Creates a query to be used by silo
. It may be quicker to create a query
manually and re-use it multiple times.
Since: 0.1.4
XbQuery * xb_query_new_full (XbSilo *silo
,const gchar *xpath
,XbQueryFlags flags
,GError **error
);
Creates a query to be used by silo
. It may be quicker to create a query
manually and re-use it multiple times.
silo |
a XbSilo |
|
xpath |
The XPath query |
|
flags |
some XbQueryFlags, e.g. XB_QUERY_FLAG_USE_INDEXES |
|
error |
the GError, or |
Since: 0.1.6
const gchar *
xb_query_get_xpath (XbQuery *self
);
Gets the XPath string that created the query.
Since: 0.1.4
guint
xb_query_get_limit (XbQuery *self
);
Gets the results limit on this query, where 0 is 'all'.
Since: 0.1.4
void xb_query_set_limit (XbQuery *self
,guint limit
);
Sets the results limit on this query, where 0 is 'all'.
Since: 0.1.4
XbQueryFlags
xb_query_get_flags (XbQuery *self
);
Gets the flags used for this query.
Since: 0.1.15
void xb_query_set_flags (XbQuery *self
,XbQueryFlags flags
);
Sets the flags to use for this query.
Since: 0.1.15
gboolean xb_query_bind_str (XbQuery *self
,guint idx
,const gchar *str
,GError **error
);
Assigns a string to a bound value specified using ?
.
self |
a XbQuery |
|
idx |
an integer index |
|
str |
string to assign to the bound variable |
|
error |
a GError, or |
Since: 0.1.4