| RegLogDBIConnector {shiny.reglog} | R Documentation |
Connector to DBI-valid databases
Description
Object of this class handles all connections for the RegLogServer
object to the database. It is created to handle DBI compatible drivers.
Provides methods than will be used by RegLogServer to get and send data.
Super class
shiny.reglog::RegLogConnector -> RegLogDBIConnector
Methods
Public methods
Inherited methods
Method new()
Initialization of the object. Creates initial connection to the database.
Requires DBI package to be installed.
Usage
RegLogDBIConnector$new(
driver,
...,
table_names = c("account", "reset_code", "logs"),
custom_handlers = NULL
)Arguments
driverCall that specifies the driver to be used during all queries
...other arguments used in
DBI::dbConnect()calltable_namescharacter vector. Contains names of the tables in the database: first containing user data, second - reset codes information, third (optional) - logs from the object. For more info check documentation of
DBI_database_create.custom_handlersnamed list of custom handler functions. Every custom handler should take arguments:
selfandprivate- relating to the R6 object andmessageof classRegLogConnectorMessage. It should returnRegLogConnectorMessageobject.
Returns
object of RegLogDBIConnector class
Method clone()
The objects of this class are cloneable with this method.
Usage
RegLogDBIConnector$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
Other dbConnectors:
RegLogGsheetConnector