Connecting to RAD in Python
The RAD instances can communicate through the RADConnection
class. There are various mechanism to get different types of connections to RAD. Each mechanism returns a RADConnection
instance, which provides a standard interface to interact with RAD.
The preferred method for managing a connection is to use the with
keyword. The connection uses the system resources and this ensures that the resource is closed correctly when the object goes out of scope. If the system resources are not used, the system resources can be reclaimed explicitly with the close
() method.
Note:
If you print theRADConnection
object, it displays the state of the connection and lets you know if the connection is closed.