SciDB AFL statements are normally executed in a stateless query context. Use scidb_prefix to create compound AFL expressions useful in some circumstances.
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
. Setexpression=NULL
to remove the prefix expression.
Examples
if (FALSE) { # \dontrun{
library(scidb)
db <- scidbconnect()
ls(db)
new_db <- scidb_prefix(db, "set_role('functionary')")
ls(new_db)
} # }