Explicitly shuts down the database instance associated with the connection, conn
.
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.
Examples
con <- connect_to_database(test_db = TRUE)
disconnect_from_database(con, test_db = TRUE)
#> [1] "Disconnected from the test database."