Close the connection to the server.
disconnect(connection)The connection to the database server created using either
connect() or DBI::dbConnect().
if (FALSE) { # \dontrun{
connectionDetails <- createConnectionDetails(
dbms = "postgresql",
server = "localhost",
user = "root",
password = "blah"
)
conn <- connect(connectionDetails)
count <- querySql(conn, "SELECT COUNT(*) FROM person")
disconnect(conn)
} # }