Skip to contents

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.

Note

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

Examples

if (FALSE) { # \dontrun{
library(scidb)
db <- scidbconnect()
ls(db)
new_db <- scidb_prefix(db, "set_role('functionary')")
ls(new_db)
} # }