close method

Closes this connection.

Syntax
close()
Remarks

Once a connection is closed, it cannot be reopened. To reopen a connection, a new connection object must be created and opened.

It is an error to use any object (a table or schema for example) associated with a closed connection.

In JavaScript, the closed connection object is not set to NULL automatically after it is closed. It is recommended that you explicitly set the connection object to NULL after closing the connection.