Learn R Programming

connector (version 0.1.0)

disconnect_cnt: Disconnect (close) the connection of the connector

Description

Generic implementing of how to disconnect from the relevant connections. Mostly relevant for DBI connectors.

  • ConnectorDBI: Uses DBI::dbDisconnect() to create a table reference to close a DBI connection.

Usage

disconnect_cnt(connector_object, ...)

# S3 method for ConnectorDBI disconnect_cnt(connector_object, ...)

Value

invisible connector_object.

Arguments

connector_object

Connector The connector object to use.

...

Additional arguments passed to the method for the individual connector.

Examples

Run this code
# Open and close a DBI connector
cnt <- connector_dbi(RSQLite::SQLite())

cnt$conn

cnt |>
  disconnect_cnt()

cnt$conn

Run the code above in your browser using DataLab