klyn.data.sql.internal.SQLConnectionLease.SQLConnectionLease
constructor

    public SQLConnectionLease(connection as Connection, ownsConnection as Boolean):

Description

Creates an owned or borrowed connection lease.

Parameters

Parameter | Description
--- | ---
`connection` | Open SQL connection.
`ownsConnection` | Whether `close()` also closes the connection.

Example

    lease = SQLConnectionLease(connection, true)