Learn R Programming

RBaseX (version 0.1.4)

Bind: Bind

Description

Binds a value to a variable.

Usage

Bind(query_obj, ...)

Arguments

query_obj

QueryClass instance-ID

...

Binding Information

Details

Binding information can be provided in the following ways:

  • name, value Name and value for a variable.

  • name, value, type Name, value and type for a variable.

For a list of possibe types see http://docs.basex.org/wiki/Java_Bindings#Data_Types

Examples

Run this code
# NOT RUN {
query_txt <- "declare variable $name external; for $i in 1 to 3 return element { $name } { $i }"
query_obj <- Query(Session, query_txt)
Bind(query_obj, "$name", "number")
print(Execute(query_obj))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab