The client can be used in 'standard' mode and in 'query' mode. Query mode is used to define queries, binding variables and for iterative evaluation.
new()Initialize a new instance from QueryClass
QueryClass$new(query, Parent)
queryQuery-string
ParentThe 'Parent' for this QueryClass-instance
sockSession-socket
InterceptPointer to the Intercept-method from the Session-object
QueryClass-instances can only be created by calling the 'Query'-method from the 'BasexClient'-class.
Bind()Binds a value to a variable.
QueryClass$Bind(...)
...Binding Information
query_objQueryClass instance-ID
When using the primitive functions, this function can be chained.
Context()Binds a value to the context. The type will be ignored if the string is empty.
QueryClass$Context(value, type)
valueValue that should be boud to the context
typeThe type will be ignored when the string is empty
When using the primitive functions, this function can be chained.
Close()Closes and unregisters the query with the specified ID
QueryClass$Close()
When using the primitive functions, this function can be chained.
ExecuteQuery()Executes a query.
QueryClass$ExecuteQuery()
Info()Returns a string with query compilation and profiling info.
QueryClass$Info()
Options()Returns a string with all query serialization parameters, which can e.g. be assigned to the serializer option.
QueryClass$Options()
Updating()Check if the query contains updating expressions.
QueryClass$Updating()
More()Indicates if there are any other results in the query-result.
QueryClass$More()
Next()Returns the next result when iterating over a query
QueryClass$Next()
Full()Executes a query and returns a vector with all resulting items as strings, prefixed by the 'XDM' (Xpath Data Model) Meta Data <https://www.xdm.org/>.
QueryClass$Full()
clone()The objects of this class are cloneable with this method.
QueryClass$clone(deep = FALSE)
deepWhether to make a deep clone.