Close the PostgreSQL connection when you are done using a database.
Arguments
- conn
A DBIConnection object, as returned by
dbConnect()
.
Details
Wrapper on DBI::dbDisconnect()
. It is important to remember to
close connections or your database performance can decrease over time.
See also
Other postgresql functions:
sbfx_backup_pg()
,
sbfx_create_pg()
,
sbfx_execute_pg()
,
sbfx_get_config_file()
,
sbfx_get_config_value()
,
sbfx_get_schema()
,
sbfx_list_tables_pg()
,
sbfx_load_data_from_pg()
,
sbfx_load_datas_from_pg()
,
sbfx_open_pg()
,
sbfx_reset_config_file()
,
sbfx_reset_config_value()
,
sbfx_reset_schema()
,
sbfx_save_data_to_pg()
,
sbfx_set_config_file()
,
sbfx_set_config_value()
,
sbfx_set_schema()
Examples
if (FALSE) { # \dontrun{
conn <- sbfx_open_pg()
sbfx_close_pg(conn)
} # }