sn_disconnect_from_db: Ensure that connection to cache is disconnected consistently

View source: R/db.R

sn_disconnect_from_dbR Documentation

Ensure that connection to cache is disconnected consistently

Description

Ensure that connection to cache is disconnected consistently

Usage

sn_disconnect_from_db(
  cache = NULL,
  db_connection = NULL,
  disconnect_db = TRUE,
  country = NULL
)

Arguments

cache

Defaults to NULL. If given, it should be given either TRUE or FALSE. Typically set with 'tw_enable_cache()' or 'tw_disable_cache()'.

db_connection

Defaults to NULL. If NULL, and caching is enabled, 'tidywikidatar' will use a local sqlite database. A custom connection to other databases can be given (see vignette 'caching' for details).

disconnect_db

Defaults to TRUE. If FALSE, leaves the connection to cache open.

Value

Nothing, used for its side effects.

Examples


sn_disconnect_from_db()

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.