• 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/cockroachdb/CockroachDataSourceOptions.ts
1
import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions"
×
2
import { ReplicationMode } from "../types/ReplicationMode"
×
3
import { CockroachConnectionCredentialsOptions } from "./CockroachConnectionCredentialsOptions"
×
4

×
5
/**
×
6
 * Cockroachdb-specific connection options.
×
7
 */
×
NEW
8
export interface CockroachDataSourceOptions
×
9
    extends BaseDataSourceOptions, CockroachConnectionCredentialsOptions {
×
10
    /**
×
11
     * Database type.
×
12
     */
×
13
    readonly type: "cockroachdb"
×
14

×
15
    /**
×
16
     * Enable time travel queries on cockroachdb.
×
17
     * https://www.cockroachlabs.com/docs/stable/as-of-system-time.html
×
18
     */
×
19
    readonly timeTravelQueries: boolean
×
20

×
21
    /**
×
22
     * Schema name.
×
23
     */
×
24
    readonly schema?: string
×
25

×
26
    /**
×
27
     * The driver object
×
28
     * This defaults to `require("pg")`.
×
29
     */
×
30
    readonly driver?: any
×
31

×
32
    /**
×
33
     * The driver object
×
34
     * This defaults to `require("pg-native")`.
×
35
     */
×
36
    readonly nativeDriver?: any
×
37

×
38
    /**
×
39
     * Replication setup.
×
40
     */
×
41
    readonly replication?: {
×
42
        /**
×
43
         * Master server used by orm to perform writes.
×
44
         */
×
45
        readonly master: CockroachConnectionCredentialsOptions
×
46

×
47
        /**
×
48
         * List of read-from servers (slaves).
×
49
         */
×
50
        readonly slaves: CockroachConnectionCredentialsOptions[]
×
51

×
52
        /**
×
53
         * Default connection pool to use for SELECT queries
×
54
         * @default "slave"
×
55
         */
×
56
        readonly defaultMode?: ReplicationMode
×
57
    }
×
58

×
59
    /**
×
60
     * sets the application_name var to help db administrators identify
×
61
     * the service using this connection. Defaults to 'undefined'
×
62
     */
×
63
    readonly applicationName?: string
×
64

×
65
    /**
×
66
     * Function handling errors thrown by drivers pool.
×
67
     * Defaults to logging error with `warn` level.
×
68
     */
×
69
    readonly poolErrorHandler?: (err: any) => any
×
70

×
71
    /**
×
72
     * Max number of transaction retries in case of 40001 error.
×
73
     */
×
74
    readonly maxTransactionRetries?: number
×
75
}
×
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