Tedious sample config contains extraneous properties

Đang mở
#132 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@kgala2 đang làm issue này rồi.

Từ ngày 24/4/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
99
Fork
18
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GoogleCloudPlatform/cloud-sql-nodejs-connector

Tất cả issue của GoogleCloudPlatform/cloud-sql-nodejs-connector

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.