• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 22256862981

21 Feb 2026 12:31PM UTC coverage: 81.291% (+0.1%) from 81.176%
22256862981

push

github

web-flow
feat!: remove deprecated `Connection` and `ConnectionOptions` (#12022)

27682 of 33521 branches covered (82.58%)

Branch coverage included in aggregate %.

1205 of 1301 new or added lines in 76 files covered. (92.62%)

1 existing line in 1 file now uncovered.

93920 of 116068 relevant lines covered (80.92%)

71235.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/driver/sap/SapDataSourceOptions.ts
1
import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions"
×
2
import { SapConnectionCredentialsOptions } from "./SapConnectionCredentialsOptions"
×
3

×
4
/**
×
5
 * SAP Hana specific connection options.
×
6
 */
×
NEW
7
export interface SapDataSourceOptions
×
8
    extends BaseDataSourceOptions, SapConnectionCredentialsOptions {
×
9
    /**
×
10
     * Database type.
×
11
     */
×
12
    readonly type: "sap"
×
13

×
14
    /**
×
15
     * Database schema.
×
16
     */
×
17
    readonly schema?: string
×
18

×
19
    /**
×
20
     * The driver objects
×
21
     * This defaults to require("@sap/hana-client")
×
22
     */
×
23
    readonly driver?: any
×
24

×
25
    /**
×
26
     * @deprecated Use {@link driver} instead.
×
27
     */
×
28
    readonly hanaClientDriver?: any
×
29

×
30
    /**
×
31
     * Pool options.
×
32
     */
×
33
    readonly pool?: {
×
34
        /**
×
35
         * Maximum number of open connections created by the pool, each of which
×
36
         * may be in the pool waiting to be reused or may no longer be in the
×
37
         * pool and actively being used (default: 10).
×
38
         */
×
39
        readonly maxConnectedOrPooled?: number
×
40

×
41
        /**
×
42
         * Defines the maximum time, in seconds, that connections are allowed to
×
43
         * remain in the pool before being marked for eviction (default: 30).
×
44
         */
×
45
        readonly maxPooledIdleTime?: number
×
46

×
47
        /**
×
48
         * Defines the maximum time, in milliseconds, to wait for a connection
×
49
         * to become available once the specified number of `maxConnectedOrPooled`
×
50
         * open connections have been reached (default: 0, no wait).
×
51
         * @remarks Requires `@sap/hana-client` version `2.27` or later.
×
52
         */
×
53
        readonly maxWaitTimeoutIfPoolExhausted?: number
×
54

×
55
        /**
×
56
         * Determines whether or not the pooled connection should be tested for
×
57
         * viability before being reused (default: false).
×
58
         */
×
59
        readonly pingCheck?: boolean
×
60

×
61
        /**
×
62
         * Maximum number of connections allowed to be in the pool, waiting to
×
63
         * be reused (default: 0, no limit).
×
64
         */
×
65
        readonly poolCapacity?: number
×
66

×
67
        /**
×
68
         * Max number of connections.
×
69
         * @deprecated Use {@link maxConnectedOrPooled} instead.
×
70
         */
×
71
        readonly max?: number
×
72

×
73
        /**
×
74
         * Minimum number of connections.
×
75
         * @deprecated Obsolete, no alternative exists.
×
76
         */
×
77
        readonly min?: number
×
78

×
79
        /**
×
80
         * Maximum number of waiting requests allowed.
×
81
         * @deprecated Obsolete, no alternative exists.
×
82
         */
×
83
        readonly maxWaitingRequests?: number
×
84

×
85
        /**
×
86
         * Max milliseconds a request will wait for a resource before timing out.
×
87
         * @deprecated Use {@link maxWaitTimeoutIfPoolExhausted} instead.
×
88
         */
×
89
        readonly requestTimeout?: number
×
90

×
91
        /**
×
92
         * How often to run resource timeout checks.
×
93
         * @deprecated Obsolete, no alternative exists.
×
94
         */
×
95
        readonly checkInterval?: number
×
96

×
97
        /**
×
98
         * Idle timeout (in milliseconds).
×
99
         * @deprecated Use {@link maxPooledIdleTime} (in seconds) instead .
×
100
         */
×
101
        readonly idleTimeout?: number
×
102

×
103
        /**
×
104
         * Function handling errors thrown by drivers pool.
×
105
         * Defaults to logging error with `warn` level.
×
106
         */
×
107
        readonly poolErrorHandler?: (err: any) => any
×
108
    }
×
109
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc