Close a database connection

db_close(db)

Arguments

db

database object returned by db_connect

Note

To close a cached connection, call db_close on an object returned by db_connect(..., cache = FALSE)

See also