quis.addScript: Adds one or more statements to the current process.

Description Usage Arguments Value Examples

View source: R/RQUIS.R

Description

quis.addScript Adds one or more statements to the current process. Each engine instance works on one process at a time.

Usage

1
quis.addScript(engine, statement)

Arguments

engine

the engine instance created by quis.getEngine

statement

the statement to be submitted to the engine for later execution. Statements are of one of these types: PERSPECTIVE, CONNECTION, BINDING, SELECT. A minimum process needs at least one connection. one binding, and one select. It is possible to have any number of these statements, but they have to follow the abovementioned order, which means e.g., all perspectives go before all connections and so on.

Value

the added script is returned. Usually the return value is not needed, but in case of debugging it may be useful.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
engine1 <- quis.getEngine()
script <- "CONNECTION cnn1 ADAPTER=CSV SOURCE_URI='extdata/'
PARAMETERS=delimiter:comma, fileExtension:csv, firstRowIsHeader:true"
addedScript <- quis.addScript(engine1, script)

## Not run: 
engine1 <- quis.getEngine()
script <- "CONNECTION cnn1 ADAPTER=CSV SOURCE_URI='extdata/'
PARAMETERS=delimiter:comma, fileExtension:csv, firstRowIsHeader:true"
addedScript <- quis.addScript(engine1, script)

## End(Not run)

javadch/rquis documentation built on May 18, 2019, 5:56 p.m.