Skip to contents

Get a connection to a remote database. If the remote connection fails, returns local DBI connection object.

Usage

get_remote_db(
  r = shiny::reactiveValues(),
  m = shiny::reactiveValues(),
  output,
  i18n = character(),
  ns = character()
)

Arguments

r

Shiny reactive value, used to communicate between modules

m

Shiny reactive value, used to communicate between modules

output

Shiny output variable

i18n

Translator object from shiny.i18n library

ns

Shiny namespace

Examples

if (FALSE) {
get_remote_db(r = r, m = m, output = output, i18n = i18n, ns = ns)
}