View source: R/MsBackendOfflineSql.R
MsBackendOfflineSql | R Documentation |
The MsBackendOfflineSql
backend extends the MsBackendSql()
backend
directly and inherits thus all of its functions as well as properties.
The only difference between the two backend is that MsBackendSql
keeps
an active connection to the SQL database inside the object while the
MsBackendOfflineSql
backends reconnects to the SQL database for each
query. While the performance of the latter is slightly lower (due to the
need to connect/disconnect to the database for each function call) it can
also be used in a parallel processing environment.
MsBackendOfflineSql()
## S4 method for signature 'MsBackendOfflineSql'
backendInitialize(
object,
drv = NULL,
dbname = character(),
user = character(),
password = character(),
host = character(),
port = NA_integer_,
data,
...
)
object |
A |
drv |
A DBI database driver object (such as |
dbname |
|
user |
|
password |
|
host |
|
port |
|
data |
For |
... |
ignored. |
An empty instance of an MsBackendOfflineSql
class can be created using the
MsBackendOfflineSql()
function. An existing MsBackendSql SQL database
can be loaded with the backendInitialize()
function. This function takes
parameters drv
, dbname
, user
, password
, host
and port
, all
parameters that are passed to the dbConnect()
function to connect to
the (existing) SQL database.
See MsBackendSql()
for information on how to create a MsBackend SQL
database.
Johannes Rainer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.