Tedious sample config contains extraneous properties

Offen
#132 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@kgala2 arbeitet bereits daran.

Seit 24.4.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
99
Forks
18
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
20

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus GoogleCloudPlatform/cloud-sql-nodejs-connector

Alle Issues in GoogleCloudPlatform/cloud-sql-nodejs-connector

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.