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.
RBaseX::BasexClient -> QueryClass
new()Initialize a new instance from QueryClass
QueryClass$new(query, sock)
queryQuery-string
sockSession-socket
QueryClass-instances can only be created by calling the 'Query'-method from the 'BasexClient'-class
Next()Returns the next result when iterating over a query
QueryClass$Next()
Close()Closes and unregisters the query with the specified ID
QueryClass$Close()
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()
Bind()Binds a value to a variable.
QueryClass$Bind(...)
...Binding Information
query_objQueryClass instance-ID
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
More()Indicates if there are any other results in the query-result.
QueryClass$More()
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.