shinto_db_connection: Make a database connection

View source: R/db_connecties.R

shinto_db_connectionR Documentation

Make a database connection

Description

[Deprecated] This function is deprecated; please use shintodb::connect() It is provided here only for backwards compatibility. Make a connection with RPostgres to one of the Shinto Labs databases.

Usage

shinto_db_connection(
  what,
  file = getOption("shintobag_conf", "conf/config.yml"),
  search_global = FALSE,
  allow_default_fallback = FALSE,
  pool = FALSE,
  config_entry = NULL
)

Arguments

what

Welke database connectie in het config bestand? (bv. "BAGdata")

file

Lokatie van het config bestand, normaal gezet via ⁠options(shintobag_conf = /path/to/file)⁠

search_global

If TRUE, ignores 'file' argument and tries to find global config file.

pool

Logical. Als TRUE, gebruikt pool::dbPool, anders DBI::dbConnect

port_default

The default port if missing from config ("dbport")

Details

global_db_connection is a shorthand for shinto_db_connection with search_global = TRUE. Use this option to store encrypted passwords in a


moturoa/shintobag documentation built on April 6, 2024, 7:25 a.m.