dbDisconnect

0th

Percentile

Disconnect (close) a connection

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 DBIConnection generics: DBIConnection-class, dbDataType, dbExecute, dbExistsTable, dbGetException, dbGetInfo, dbGetQuery, dbIsValid, dbListFields, dbListResults, dbListTables, dbReadTable, dbRemoveTable, dbSendQuery, dbSendStatement

Aliases
  • dbDisconnect
Examples
library(DBI) con <- dbConnect(RSQLite::SQLite(), ":memory:") dbDisconnect(con)
Documentation reproduced from package DBI, version 0.5-1, License: LGPL (>= 2)

Community examples

Looks like there are no examples yet.