Driver:-Close - closes the Driver Module
|
Calling Sequence
|
|
driver:-Close()
|
|
Description
|
|
•
|
Close frees the resources associated with driver. This also happens when the resources are freed via garbage collection; however, you can call Close to release the resources immediately.
|
•
|
Any descendant modules of driver are closed when driver is closed. (A module is a descendant of driver if it is returned by one of driver's exports or is a descendant of one of driver's descendants.)
|
|
|
Examples
|
|
Load the JDBC driver and open a connection to the database.
>
|
|
>
|
|
Close the driver.
>
|
|
Try to use the connection.
>
|
|
Error, (in ExecuteQuery) this object has been closed, no further operations are possible
|
|
|
Try to use the driver.
>
|
|
Error, (in ExecuteQuery) this object has been closed, no further operations are possible
|
|
|
|
|