Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MSSQLConnectOptions

Connect options for configuring MSSQLConnection.

Hierarchy

  • any
    • MSSQLConnectOptions

Index

Constructors

Methods

Constructors

constructor

Methods

addCrlPath

  • Parameters

    • crlPaths: string

    Returns MSSQLConnectOptions

addCrlValue

  • Parameters

    • crlValues: Buffer

    Returns MSSQLConnectOptions

addEnabledCipherSuite

  • Parameters

    • enabledCipherSuites: string

    Returns MSSQLConnectOptions

addEnabledSecureTransportProtocol

  • addEnabledSecureTransportProtocol(enabledSecureTransportProtocols: string): MSSQLConnectOptions
  • Parameters

    • enabledSecureTransportProtocols: string

    Returns MSSQLConnectOptions

addNonProxyHost

  • Parameters

    • nonProxyHosts: string

    Returns MSSQLConnectOptions

addProperty

  • Parameters

    • key: string
    • propertys: string

    Returns MSSQLConnectOptions

getActivityLogDataFormat

  • getActivityLogDataFormat(): any
  • Returns any

getApplicationLayerProtocols

  • getApplicationLayerProtocols(): string[]
  • Returns string[]

getCachePreparedStatements

  • getCachePreparedStatements(): boolean
  • Returns boolean

getConnectTimeout

  • getConnectTimeout(): number
  • Returns number

getCrlPaths

  • getCrlPaths(): string[]
  • Returns string[]

getCrlValues

  • getCrlValues(): Buffer[]
  • Returns Buffer[]

getDatabase

  • getDatabase(): string
  • Returns string

getEnabledCipherSuites

  • getEnabledCipherSuites(): string[]
  • Returns string[]

getEnabledSecureTransportProtocols

  • getEnabledSecureTransportProtocols(): string[]
  • Returns string[]

getHost

  • getHost(): string
  • Returns string

getHostnameVerificationAlgorithm

  • getHostnameVerificationAlgorithm(): string
  • Returns string

getIdleTimeout

  • getIdleTimeout(): number
  • Returns number

getIdleTimeoutUnit

  • getIdleTimeoutUnit(): any
  • Returns any

getJdkSslEngineOptions

  • getJdkSslEngineOptions(): JdkSSLEngineOptions
  • Returns JdkSSLEngineOptions

getKeyStoreOptions

  • getKeyStoreOptions(): JksOptions
  • Returns JksOptions

getLocalAddress

  • getLocalAddress(): string
  • Returns string

getLogActivity

  • getLogActivity(): boolean
  • Returns boolean

getMetricsName

  • getMetricsName(): string
  • Returns string

getNonProxyHosts

  • getNonProxyHosts(): string[]
  • Returns string[]

getOpenSslEngineOptions

  • getOpenSslEngineOptions(): OpenSSLEngineOptions
  • Returns OpenSSLEngineOptions

getPacketSize

  • getPacketSize(): number
  • Set the desired size (in bytes) for TDS packets.

    The client will use the value as a parameter in the LOGIN7 packet. The server may or may not accept it.

    Returns number

getPassword

  • getPassword(): string
  • Returns string

getPemKeyCertOptions

  • getPemKeyCertOptions(): PemKeyCertOptions
  • Returns PemKeyCertOptions

getPemTrustOptions

  • getPemTrustOptions(): PemTrustOptions
  • Returns PemTrustOptions

getPfxKeyCertOptions

  • getPfxKeyCertOptions(): PfxOptions
  • Returns PfxOptions

getPfxTrustOptions

  • getPfxTrustOptions(): PfxOptions
  • Returns PfxOptions

getPort

  • getPort(): number
  • Returns number

getPreparedStatementCacheMaxSize

  • getPreparedStatementCacheMaxSize(): number
  • Returns number

getProperties

  • getProperties(): {}
  • Returns {}

    • [key: string]: string

getProxyOptions

  • getProxyOptions(): ProxyOptions
  • Returns ProxyOptions

getReadIdleTimeout

  • getReadIdleTimeout(): number
  • Returns number

getReceiveBufferSize

  • getReceiveBufferSize(): number
  • Returns number

getReconnectAttempts

  • getReconnectAttempts(): number
  • Returns number

getReconnectInterval

  • getReconnectInterval(): number
  • Returns number

getSendBufferSize

  • getSendBufferSize(): number
  • Returns number

getSoLinger

  • getSoLinger(): number
  • Returns number

getSslEngineOptions

  • getSslEngineOptions(): any
  • Returns any

getSslHandshakeTimeout

  • getSslHandshakeTimeout(): number
  • Returns number

getSslHandshakeTimeoutUnit

  • getSslHandshakeTimeoutUnit(): any
  • Returns any

getTcpUserTimeout

  • getTcpUserTimeout(): number
  • Returns number

getTracingPolicy

  • getTracingPolicy(): TracingPolicy
  • Returns TracingPolicy

getTrafficClass

  • getTrafficClass(): number
  • Returns number

getTrustOptions

  • getTrustOptions(): any
  • Returns any

getTrustStoreOptions

  • getTrustStoreOptions(): JksOptions
  • Returns JksOptions

getUser

  • getUser(): string
  • Returns string

getWriteIdleTimeout

  • getWriteIdleTimeout(): number
  • Returns number

isRegisterWriteHandler

  • isRegisterWriteHandler(): boolean
  • Returns boolean

isReuseAddress

  • isReuseAddress(): boolean
  • Returns boolean

isReusePort

  • isReusePort(): boolean
  • Returns boolean

isSsl

  • isSsl(): boolean
  • Returns boolean

isTcpCork

  • isTcpCork(): boolean
  • Returns boolean

isTcpFastOpen

  • isTcpFastOpen(): boolean
  • Returns boolean

isTcpKeepAlive

  • isTcpKeepAlive(): boolean
  • Returns boolean

isTcpNoDelay

  • isTcpNoDelay(): boolean
  • Returns boolean

isTcpQuickAck

  • isTcpQuickAck(): boolean
  • Returns boolean

isTrustAll

  • isTrustAll(): boolean
  • Returns boolean

isUseAlpn

  • isUseAlpn(): boolean
  • Returns boolean

isUsingDomainSocket

  • isUsingDomainSocket(): boolean
  • Returns boolean

setActivityLogDataFormat

  • Parameters

    • activityLogDataFormat: any

    Returns MSSQLConnectOptions

setApplicationLayerProtocols

  • Parameters

    • applicationLayerProtocols: string[]

    Returns MSSQLConnectOptions

setCachePreparedStatements

  • Parameters

    • cachePreparedStatements: boolean

    Returns MSSQLConnectOptions

setConnectTimeout

  • Parameters

    • connectTimeout: number

    Returns MSSQLConnectOptions

setDatabase

  • Parameters

    • database: string

    Returns MSSQLConnectOptions

setEnabledSecureTransportProtocols

  • setEnabledSecureTransportProtocols(enabledSecureTransportProtocols: string[]): MSSQLConnectOptions
  • Parameters

    • enabledSecureTransportProtocols: string[]

    Returns MSSQLConnectOptions

setHost

  • Parameters

    • host: string

    Returns MSSQLConnectOptions

setHostnameVerificationAlgorithm

  • Parameters

    • hostnameVerificationAlgorithm: string

    Returns MSSQLConnectOptions

setIdleTimeout

  • Parameters

    • idleTimeout: number

    Returns MSSQLConnectOptions

setIdleTimeoutUnit

  • Parameters

    • idleTimeoutUnit: any

    Returns MSSQLConnectOptions

setJdkSslEngineOptions

  • Parameters

    • jdkSslEngineOptions: JdkSSLEngineOptions

    Returns MSSQLConnectOptions

setKeyCertOptions

  • Parameters

    • keyCertOptions: any

    Returns MSSQLConnectOptions

setKeyStoreOptions

  • Parameters

    • keyStoreOptions: JksOptions

    Returns MSSQLConnectOptions

setLocalAddress

  • Parameters

    • localAddress: string

    Returns MSSQLConnectOptions

setLogActivity

  • Parameters

    • logActivity: boolean

    Returns MSSQLConnectOptions

setMetricsName

  • Parameters

    • metricsName: string

    Returns MSSQLConnectOptions

setNonProxyHosts

  • Parameters

    • nonProxyHosts: string[]

    Returns MSSQLConnectOptions

setOpenSslEngineOptions

  • Parameters

    • openSslEngineOptions: OpenSSLEngineOptions

    Returns MSSQLConnectOptions

setPacketSize

  • Set the desired size (in bytes) for TDS packets.

    The client will use the value as a parameter in the LOGIN7 packet. The server may or may not accept it.

    Parameters

    • packetSize: number

    Returns MSSQLConnectOptions

setPassword

  • Parameters

    • password: string

    Returns MSSQLConnectOptions

setPemKeyCertOptions

  • Parameters

    • pemKeyCertOptions: PemKeyCertOptions

    Returns MSSQLConnectOptions

setPemTrustOptions

  • Parameters

    • pemTrustOptions: PemTrustOptions

    Returns MSSQLConnectOptions

setPfxKeyCertOptions

  • Parameters

    • pfxKeyCertOptions: PfxOptions

    Returns MSSQLConnectOptions

setPfxTrustOptions

  • Parameters

    • pfxTrustOptions: PfxOptions

    Returns MSSQLConnectOptions

setPort

  • Parameters

    • port: number

    Returns MSSQLConnectOptions

setPreparedStatementCacheMaxSize

  • Parameters

    • preparedStatementCacheMaxSize: number

    Returns MSSQLConnectOptions

setPreparedStatementCacheSqlLimit

  • setPreparedStatementCacheSqlLimit(preparedStatementCacheSqlLimit: number): MSSQLConnectOptions
  • Parameters

    • preparedStatementCacheSqlLimit: number

    Returns MSSQLConnectOptions

setProperties

  • Parameters

    • properties: {}
      • [key: string]: string

    Returns MSSQLConnectOptions

setProxyOptions

  • Parameters

    • proxyOptions: ProxyOptions

    Returns MSSQLConnectOptions

setReadIdleTimeout

  • Parameters

    • readIdleTimeout: number

    Returns MSSQLConnectOptions

setReceiveBufferSize

  • Parameters

    • receiveBufferSize: number

    Returns MSSQLConnectOptions

setReconnectAttempts

  • Parameters

    • reconnectAttempts: number

    Returns MSSQLConnectOptions

setReconnectInterval

  • Parameters

    • reconnectInterval: number

    Returns MSSQLConnectOptions

setRegisterWriteHandler

  • Parameters

    • registerWriteHandler: boolean

    Returns MSSQLConnectOptions

setReuseAddress

  • Parameters

    • reuseAddress: boolean

    Returns MSSQLConnectOptions

setReusePort

  • Parameters

    • reusePort: boolean

    Returns MSSQLConnectOptions

setSendBufferSize

  • Parameters

    • sendBufferSize: number

    Returns MSSQLConnectOptions

setSoLinger

  • Parameters

    • soLinger: number

    Returns MSSQLConnectOptions

setSsl

  • Parameters

    • ssl: boolean

    Returns MSSQLConnectOptions

setSslEngineOptions

  • Parameters

    • sslEngineOptions: any

    Returns MSSQLConnectOptions

setSslHandshakeTimeout

  • Parameters

    • sslHandshakeTimeout: number

    Returns MSSQLConnectOptions

setSslHandshakeTimeoutUnit

  • Parameters

    • sslHandshakeTimeoutUnit: any

    Returns MSSQLConnectOptions

setTcpCork

  • Parameters

    • tcpCork: boolean

    Returns MSSQLConnectOptions

setTcpFastOpen

  • Parameters

    • tcpFastOpen: boolean

    Returns MSSQLConnectOptions

setTcpKeepAlive

  • Parameters

    • tcpKeepAlive: boolean

    Returns MSSQLConnectOptions

setTcpNoDelay

  • Parameters

    • tcpNoDelay: boolean

    Returns MSSQLConnectOptions

setTcpQuickAck

  • Parameters

    • tcpQuickAck: boolean

    Returns MSSQLConnectOptions

setTcpUserTimeout

  • Parameters

    • tcpUserTimeout: number

    Returns MSSQLConnectOptions

setTracingPolicy

  • Parameters

    • tracingPolicy: TracingPolicy

    Returns MSSQLConnectOptions

setTrafficClass

  • Parameters

    • trafficClass: number

    Returns MSSQLConnectOptions

setTrustAll

  • Parameters

    • trustAll: boolean

    Returns MSSQLConnectOptions

setTrustOptions

  • Parameters

    • trustOptions: any

    Returns MSSQLConnectOptions

setTrustStoreOptions

  • Parameters

    • trustStoreOptions: JksOptions

    Returns MSSQLConnectOptions

setUseAlpn

  • Parameters

    • useAlpn: boolean

    Returns MSSQLConnectOptions

setUser

  • Parameters

    • user: string

    Returns MSSQLConnectOptions

setWriteIdleTimeout

  • Parameters

    • writeIdleTimeout: number

    Returns MSSQLConnectOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc