Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Deprecate pool support in favor of generic-pool

オープン
#432 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, node.js
領域
backend, databases

調査の方向性

node-odbc の Pool クラスから始め、リンクされた議論と generic-pool のドキュメントを確認してください。サポートされる非推奨化のタイムラインを判断し、その後、generic-pool の基本的な使用方法を文書化するか、例を提供してください。完了の条件は、Pool クラスが非推奨としてマークされ、ユーザーに明確な移行パスがあることです。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Based on discussion stemming from https://github.com/IBM/node-odbc/issues/63#issuecomment-3228227873

This package gives us a lot of benefits:

  • Supports what our built-in pool code does and more
  • Allow us to close a bunch of issues we have with the current pool implementation
  • Allow us to drop the async package

In addition, it supports a user-defined validation function, which allows the user to customize how they want to determine if a connection is valid. Currently we only check the "connected" attribute, which queries SQL_ATTR_CONNECTION_DEAD that only gives the last known status of the connection. If the connection has died since it was last used, this check will do nothing.

Goals of this would be:

  • Mark the Pool class as deprecated and to be removed in the future (v3? v2.4 + XX?)
  • Document basic usage of generic-pool with node-odbc or provide an example

https://www.npmjs.com/package/generic-pool

主要言語
JavaScript
スター
159
フォーク
92
平均マージ
3分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IBM/node-odbc のほかの issue

IBM/node-odbc の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。