DBI (version 0.4-1)

dbDisconnect: Disconnect (close) a connection

Description

This closes the connection, discards all pending work, and frees resources (e.g., memory, sockets).

Usage

dbDisconnect(conn, ...)

Arguments

conn
A DBIConnection object, as produced by dbConnect.
...
Other parameters passed on to methods.

Value

a logical vector of length 1, indicating success or failure.

See Also

Other connection methods: dbExistsTable, dbGetException, dbGetQuery, dbListFields, dbListResults, dbListTables, dbReadTable, dbRemoveTable, dbSendQuery

Examples

Run this code
if (require("RSQLite")) {
con <- dbConnect(RSQLite::SQLite(), ":memory:")
dbDisconnect(con)
}

Run the code above in your browser using DataCamp Workspace