Connect to SciDB server and get a ScidbConnection object.
db_connect(
username = NA,
token = NA,
host = "127.0.0.1",
port = 8083,
protocol = "https",
auth_type = "scidb",
...,
save_to_default_conn = TRUE,
save_token = FALSE,
db = NULL
)
SciDB user name
SciDB user password or token
the host to connect to
Port
Protocol. "https" (preferred, secure) or "http"
Authentication type
other optional params used in scidb::scidbconnect
A boolean value that determines whether to save
the connection object as the default in the arrayop
package scope so that
it can be retrieved anywhere using get_default_connection
.
In rare cases should we need to maintain multiple connection objects, we can
set save_to_default_conn
to FALSE.
Whether to save token/password. Default FALSE. Do not set to TRUE in production env.
A connection object returned by scidb::scidbconnect
.
If NULL (NULL), username, token, host, ... params must be provided.
If set to a valid scidb connection object, then ignore explict params (e.g. username, token, etc.)
and use the connection object directly
A Scidbconnection object.