Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 183

Warning – Closing the database connection

Оглавление

Even while connections will be automatically closed when the scope of the database object is lost, it is a good idea to close a connection explicitly. Closing a connection explicitly, makes sure that it is closed and does not remain open if something went wrong, and hence the resources of our RDBMS are freed. Closing a database connection can be done with dbDisconnect(myConnection, …).

dbDisconnect()

The Big R-Book

Подняться наверх