Learn R Programming

scidb (version 3.0.0)

scidb_prefix: Register an AFL prefix expression

Description

SciDB AFL statements are normally executed in a stateless query context. Use scidb_prefix to create compound AFL expressions useful in some circumstances.

Usage

scidb_prefix(db, expression = NULL)

Arguments

db

a scidb database connection returned from scidbconnect

expression

a valid AFL expression to be issued prior to, and in the same context as all subsequent query expressions issued to the database corresponding to db. Set expression=NULL to remove the prefix expression.

Value

A new SciDB database connection object with the prefix set.

Examples

Run this code
# NOT RUN {
library(scidb)
db <- scidbconnect()
ls(db)
new_db <- scidb_prefix(db, "set_role('functionary')")
ls(new_db)
# }

Run the code above in your browser using DataLab