scidb_prefix: Register an AFL prefix expression

Description Usage Arguments Value Note Examples

View source: R/utility.R

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

1

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.

Note

This is mostly useful for setting namespaces, see the examples.

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(scidb)
db <- scidbconnect()
ls(db)
new_db <- scidb_prefix(db, "set_role('functionary')")
ls(new_db)

## End(Not run)

scidb documentation built on Aug. 12, 2020, 5:08 p.m.