This closes the connection, discards all pending work, and frees resources (e.g., memory, sockets).
This documentation page describes the generics. Refer to the documentation pages linked below for the documentation for the methods that are implemented in various backend packages.
DatabaseConnector::dbDisconnect("DatabaseConnectorConnection")
sparklyr::dbDisconnect("spark_connection")
dbDisconnect(conn, ...)
A DBIConnection object, as returned by
dbConnect()
.
Other parameters passed on to methods.
dbDisconnect()
returns TRUE
, invisibly.
A warning is issued on garbage collection when a connection has been
released without calling dbDisconnect()
,
but this cannot be tested automatically.
A warning is issued immediately when calling dbDisconnect()
on an
already disconnected
or invalid connection.
Other DBIConnection generics:
DBIConnection-class
,
dbAppendTable()
,
dbCreateTable()
,
dbDataType()
,
dbExecute()
,
dbExistsTable()
,
dbGetException()
,
dbGetInfo()
,
dbGetQuery()
,
dbIsReadOnly()
,
dbIsValid()
,
dbListFields()
,
dbListObjects()
,
dbListResults()
,
dbListTables()
,
dbReadTable()
,
dbRemoveTable()
,
dbSendQuery()
,
dbSendStatement()
,
dbWriteTable()