Skip to content

SqlServerConnectionOptions interface is missing property options.trustServerCertificate #8093

Closed
@doubliez

Description

Issue Description

Expected Behavior

The SqlServerConnectionOptions interface should accept options.trustServerCertificate (boolean) which is a valid connection option in node-mssql.

Actual Behavior

The interface doesn't have this property so I need to specify a custom type or bypass type checking on the options object.

Steps to Reproduce

The following code won't compile because trustServerCertificate is an unknown property.

import { createConnection } from 'typeorm';

createConnection({
    type: 'mssql',
    options: {
        trustServerCertificate: true
    }
});

My Environment

Dependency Version
Operating System
Node.js version 14.17.5
Typescript version 4.3.5
TypeORM version 0.2.37

Additional Context

Relevant Database Driver(s)

DB Type Reproducible
aurora-data-api no
aurora-data-api-pg no
better-sqlite3 no
cockroachdb no
cordova no
expo no
mongodb no
mysql no
nativescript no
oracle no
postgres no
react-native no
sap no
sqlite no
sqlite-abstract no
sqljs no
sqlserver yes

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️ Yes, I have the time, and I know how to start.
  • ✖️ Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️ No, I don’t have the time, but I can support (using donations) development.
  • ✅ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions