Tedious sample config contains extraneous properties

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

メンテナーはふだん 1 日以内に返信

@kgala2 がすでに取り組んでいます。

2025年4月24日 から。

評価

この issue はまだ評価されていません。

説明

priority: p2 type: cleanup

Bug Description

In the current README sample and in tedious related system tests there are two properties: server and port that should not be necessary.

Example code (or command)

These properties should not be required:

const clientOpts = await connector.getTediousOptions({
  instanceConnectionName: process.env.SQLSERVER_CONNECTION_NAME,
  ipType: 'PUBLIC'
});
const connection = new Connection({
-  server: '0.0.0.0',
  authentication: {
    type: 'default',
    options: {
      userName: process.env.SQLSERVER_USER,
      password: process.env.SQLSERVER_PASS,
    },
  },
  options: {
    ...clientOpts,
-    port: 9999,
    database: process.env.SQLSERVER_DB,
  },
})
More Info

Currently this properties are required due to a bug in the tedious driver itself that still tries to validate these properties even when the user is defining a custom connector factory method.

Related bug in Tedious: https://github.com/tediousjs/tedious/issues/1541

主要言語
TypeScript
スター
99
フォーク
18
平均マージ
1日 23時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

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

GoogleCloudPlatform/cloud-sql-nodejs-connector のほかの issue

GoogleCloudPlatform/cloud-sql-nodejs-connector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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