azure-functions-sql-extension icon indicating copy to clipboard operation
azure-functions-sql-extension copied to clipboard

Automatically Call DisposeAsync

Open sophiatev opened this issue 5 years ago • 1 comments

It's unsafe to rely on a user calling DisposeAsync once they're done using the enumerator exposed by SqlAsyncEnumerable. If they do not call it, the SqlConnection and SqlDataReader will remain open, leaking resources. Ideally, we should find a way to have this method be called automatically once the user's function exits.

sophiatev avatar Jul 31 '20 04:07 sophiatev

Check if other extensions do anything for this.

Charles-Gagnon avatar Dec 07 '22 18:12 Charles-Gagnon