RegLogGsheetConnector: Connector to googlesheet database

RegLogGsheetConnectorR Documentation

Connector to googlesheet database

Description

Object of this class handles all connections for the RegLogServer object to the database. It is created to handle googlesheet database. Provides methods than will be used by RegLogServer to get and send data.

Requires googlesheets4 package to be installed.

Super class

shiny.reglog::RegLogConnector -> RegLogGsheetConnector

Methods

Public methods

Inherited methods

Method new()

Initialization of the object. Creates initial connection to the database.

Usage
RegLogGsheetConnector$new(
  gsheet_ss,
  gsheet_sheetnames = c("account", "reset_code", "logs"),
  custom_handlers = NULL
)
Arguments
gsheet_ss

id of the googlesheet holding database

gsheet_sheetnames

character vector. Contains names of the sheets in the googlesheet: first containing user data, second - reset codes information, third (optional) - logs from the object. For more info check documentation of gsheet_database_create.

custom_handlers

named list of custom handler functions. Every custom handler should take arguments: self and private - relating to the R6 object and message of class RegLogConnectorMessage. It should return RegLogConnectorMessage object.

Returns

object of RegLogDBIConnector class


Method clone()

The objects of this class are cloneable with this method.

Usage
RegLogGsheetConnector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other dbConnectors: RegLogDBIConnector


shiny.reglog documentation built on Aug. 31, 2022, 1:06 a.m.