Xmlb.QueryContext¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
dummy0 |
r |
||
dummy1 |
r |
||
dummy2 |
r |
||
dummy3 |
[ |
r |
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Xmlb.QueryContext¶
An opaque struct which contains context for executing a query in, such as the number of results to return, or values to bind to query placeholders.
New in version 0.3.0.
- clear()¶
Clear an
Xmlb.QueryContext, freeing any allocated memory it points to.After this function has been called, the contents of the
Xmlb.QueryContextare undefined, and it’s only safe to callXmlb.QueryContext.init() on it.New in version 0.3.0.
- copy()¶
- Returns:
a copy of self
- Return type:
Copy self into a new heap-allocated
Xmlb.QueryContextinstance.New in version 0.3.0.
- free()¶
Free a heap-allocated
Xmlb.QueryContextinstance. This should be used onXmlb.QueryContextinstances created withXmlb.QueryContext.copy().For stack-allocated instances,
Xmlb.QueryContext.clear() should be used instead.New in version 0.3.0.
- get_bindings()¶
- Returns:
bindings
- Return type:
Get the
Xmlb.ValueBindingsfor this query context.New in version 0.3.0.
- get_flags()¶
- Returns:
query flags
- Return type:
Get the flags set on the context. See
Xmlb.QueryContext.set_flags().New in version 0.3.0.
- get_limit()¶
- Returns:
limit on results, or
0if unlimited- Return type:
Get the limit on the number of query results. See
Xmlb.QueryContext.set_limit().New in version 0.3.0.
- init()¶
Initialise a stack-allocated
Xmlb.QueryContextstruct so it can be used.Stack-allocated
Xmlb.QueryContextinstances should be freed once finished with, usingXmlb.QueryContext.clear() (org_auto(XbQueryContext), which is equivalent).New in version 0.3.0.
- set_flags(flags)¶
- Parameters:
flags (
Xmlb.QueryFlags) – query flags, orXmlb.QueryFlags.NONEfor none
Set flags which affect the behaviour of the query.
New in version 0.3.0.