disconnect: Disconnect from the server

View source: R/Connect.R

disconnectR Documentation

Disconnect from the server

Description

Close the connection to the server.

Usage

disconnect(connection)

Arguments

connection

The connection to the database server.

Examples

## Not run: 
connectionDetails <- createConnectionDetails(
  dbms = "postgresql",
  server = "localhost",
  user = "root",
  password = "blah"
)
conn <- connect(connectionDetails)
count <- querySql(conn, "SELECT COUNT(*) FROM person")
disconnect(conn)

## End(Not run)

quinterpriest/DatabaseConnector documentation built on April 20, 2022, 12:48 a.m.