Close the PostgreSQL connection when you are done using a database.

sbf_close_pg(conn)

Arguments

conn

A DBIConnection object, as returned by dbConnect().

Value

TRUE (or errors).

Details

Wrapper on DBI::dbDisconnect(). It is important to remember to close connections or your database performance can decrease over time.

Examples

if (FALSE) { # \dontrun{
conn <- sbf_open_pg()
sbf_close_pg(conn)
} # }