Connection - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Database Package : Connection : Database/Connection/Close

Connection

  

Close

  

close the Connection Module

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

connection:-Close( )

Parameters

connection

-

Connection module

Description

• 

Close frees the resources associated with connection. This happens automatically when connection is garbage collected; however, you can call Close to release the resources immediately.

• 

Any descendant modules of connection are closed when connection is closed.  (A module is a descendant of a parent module if it is returned by one of the parent module's exports or if it is a descendant of one of the parent module's descendants.)

Examples

driverDatabase[LoadDriver]:

conndriver:-OpenConnectionurl,name,pass:

Create a descendant of conn.

resconn:-ExecuteQuerySELECT * FROM animals:

Close conn.

conn:-Close

Try to use conn.

conn:-ExecuteQuerySELECT * FROM animals:

Error, (in ExecuteQuery) this object has been closed, no further operations are possible

Try using conn's descendant.

res:-Next

Error, (in ExecuteQuery) this object has been closed, no further operations are possible

See Also

Database

Database[Connection]

Database[Connection][CreatePreparedStatement]

Database[Connection][CreateStatement]

Database[Connection][ExecuteUpdate]

Database[Connection][Rollback]

Database[Statement]

Database[usage]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam