Method DacConnectionPool():release() Foundation

Releases a connection through its session object.

Syntax
:release( <oSession> ) --> self
Parameters
<oSession>
The session object, as returned by the :acquire() method. This parameter must be passed by reference to ensure that the caller's session object is set to nil after the connection is released. This prevents the accidental reuse of an invalid or released session object, which could cause errors or undefined behavior.
Return

This method returns self.

Description

This method releases the connection associated with the provided session object. Once released, the connection becomes available for reuse by other parts of the program, either in the same thread or in a different thread. Releasing the connection helps manage resources effectively and prevents connection exhaustion in the system.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.