Skip to contents

Explicitly shuts down the database instance associated with the connection, conn.

Usage

disconnect_from_database(conn, test_db = FALSE, confirm = TRUE)

Arguments

conn

The database instance that was called using connect_to_database()

test_db

Are you attempting to disconnect from the test database? Defaults to FALSE.

confirm

Should the function print a confirmation message to the console? Defaults to TRUE.

Value

An optional confirmation statement printed to the console.

Examples

con <- connect_to_database(test_db = TRUE)
disconnect_from_database(con, test_db = TRUE)
#> [1] "Disconnected from the test database."