drizzle-team / drizzle-team/drizzle-orm

[BUG]: Deprecation warning: Use of iterator() causes warning about pooled connection release

Open
#2,143 3 comments 1 reaction 1 assignee Claimed by @AndriiSherman View on GitHub
bug priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.30.4

### What version of `drizzle-kit` are you using?

0.20.14

### Describe the Bug

When utilizing the iterator() method, a deprecation warning is logged, suggesting that the use of conn.end() for releasing a pooled connection is deprecated and that conn.release() should be used instead.

**Steps to Reproduce:**
- Use the iterator() method in a project that utilizes pooled connections.
- Observe the console/log output for deprecation warnings when the iterator method attempts to release a connection.

### Expected behavior

The library should handle connection pooling according to best practices without causing deprecation warnings. Ideally, it should internally use conn.release() for releasing pooled connections.

### Environment & setup

node v20.11.0
express v4.19.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.