BaseXSession: Client Interface To the BaseX Server

Description Usage Arguments Details Value Author(s) Examples

Description

BaseXSession generates an object that can be used to send commands, queries, and data to a BaseX server. The object implements the standard client interface used to access BaseX by other languages.

Usage

1
BaseXSession(user, pass, host = "localhost", port = 1984, ...)

Arguments

user

The BaseX username

pass

The BaseX user's password

host

The URL to access the BaseX server

port

What port the BaseX server is listening on

...

Any additional arguments. Passed to superclass constructor

Details

BaseXSession will attempt to connect to the BaseX server and if it succeeds it will return a BaseXSession object that can be used to interact with the server over that connection.

Value

A BaseXSession object that has methods to interact with the server. Internally, this is implemented as a reference object (rather than the more common S3 and S4 objects) and so has certain distinctive properties. Because the connection to the server is stateful, the object uses call by reference rather than by value. This means that writing functional code that returns the BaseXSession object is not necessary and you can simply keep making method calls on the same object.

Author(s)

David Nusinow <david@gravitypulls.net>

Examples

1
2
3
4
5
6
7
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
structure(function (...) 
new("BaseXSession", ...), className = structure("BaseXSession", package = "BaseXClient"), package = "BaseXClient", generator = <S4 object of class structure("refGeneratorSlot", package = "methods")>, class = structure("refObjectGenerator", package = "methods"))

dnusinow/BaseXClient documentation built on May 15, 2019, 9:40 a.m.