Skip to main content

download_wrds.disconnect_connection()

Close an open WRDS database connection.

Usage

Source

download_wrds.disconnect_connection(con)

Closes the supplied connection. An error raised by the underlying driver is not caught but propagates to the caller.

Parameters

con: object
The connection object to close. Typically the value returned by ‘get_wrds_connection’.

Returns

bool
‘True’ once the connection is closed.

Raises

Exception
Any error raised by the connection’s ‘close()’ method.

Examples

from tidyfinance import get_wrds_connection, disconnect_connection
con = get_wrds_connection()
disconnect_connection(con)