Learn R Programming

RAthena (version 2.6.1)

dbDisconnect: Disconnect (close) an Athena connection

Description

This closes the connection to Athena.

Usage

# S4 method for AthenaConnection
dbDisconnect(conn, ...)

Value

dbDisconnect() returns TRUE, invisibly.

Arguments

conn

A DBIConnection object, as returned by dbConnect().

...

Other parameters passed on to methods.

See Also

Examples

Run this code
if (FALSE) {
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `RAthena::dbConnect` documnentation

library(DBI)

# Demo connection to Athena using profile name
con <- dbConnect(RAthena::athena())

# Disconnect conenction
dbDisconnect(con)
}

Run the code above in your browser using DataLab