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.
The query will point to strings inside silo
, so the lifetime of silo
must
exceed the lifetime of the returned query.
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
);
xb_query_get_limit
has been deprecated since version 0.3.0 and should not be used in newly-written code.
This is not thread-safe. Use xb_query_context_get_limit()
instead.
Gets the results limit on this query, where 0 is 'all'.
Since: 0.1.4
void xb_query_set_limit (XbQuery *self
,guint limit
);
xb_query_set_limit
has been deprecated since version 0.3.0 and should not be used in newly-written code.
This is not thread-safe. Use xb_query_context_set_limit()
instead.
Sets the results limit on this query, where 0 is 'all'.
Since: 0.1.4
XbQueryFlags
xb_query_get_flags (XbQuery *self
);
xb_query_get_flags
has been deprecated since version 0.3.0 and should not be used in newly-written code.
This is not thread-safe. Use xb_query_context_get_flags()
instead.
Gets the flags used for this query.
Since: 0.1.15
void xb_query_set_flags (XbQuery *self
,XbQueryFlags flags
);
xb_query_set_flags
has been deprecated since version 0.3.0 and should not be used in newly-written code.
This is not thread-safe. Use xb_query_context_set_flags()
instead.
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
);
xb_query_bind_str
has been deprecated since version 0.3.0 and should not be used in newly-written code.
Use XbValueBindings and xb_value_bindings_bind_str()
instead. That keeps the value bindings separate from the XbQuery,
allowing queries to be re-used over time and between threads.
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
gboolean xb_query_bind_val (XbQuery *self
,guint idx
,guint32 val
,GError **error
);
xb_query_bind_val
has been deprecated since version 0.3.0 and should not be used in newly-written code.
Use XbValueBindings and xb_value_bindings_bind_val()
instead. That keeps the value bindings separate from the XbQuery,
allowing queries to be re-used over time and between threads.
Assigns a string to a bound value specified using ?
.
self |
a XbQuery |
|
idx |
an integer index |
|
val |
value to assign to the bound variable |
|
error |
a GError, or |
Since: 0.1.4