MCPcopy
hub / github.com/sequelize/sequelize / ConnectionManager

Interface ConnectionManager

src/dialects/abstract/connection-manager.d.ts:14–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12export type Connection = object;
13
14export interface ConnectionManager {
15 refreshTypeParser(dataTypes: object): void;
16 /**
17 * Drain the pool and close it permanently
18 */
19 close(): Promise<void>;
20 /**
21 * Initialize connection pool. By default pool autostart is set to false, so no connection will be
22 * be created unless `pool.acquire` is called.
23 */
24 initPools(): void;
25 /**
26 * Get connection from pool. It sets database version if it's not already set.
27 * Call pool.acquire to get a connection.
28 */
29 getConnection(opts: GetConnectionOptions): Promise<Connection>;
30 /**
31 * Release a pooled connection, so it can be utilized by other connection requests
32 */
33 releaseConnection(conn: Connection): void;
34
35 /**
36 * Destroys a pooled connection and removes it from the pool.
37 */
38 destroyConnection(conn: Connection): Promise<void>;
39}

Callers 29

data-types.test.jsFile · 0.65
refreshTypesMethod · 0.65
constructorMethod · 0.65
sscce.jsFile · 0.65
check.jsFile · 0.65
check.jsFile · 0.65
check.jsFile · 0.65
check.jsFile · 0.65
check.jsFile · 0.65
check.jsFile · 0.65
prepareTransactionTestFunction · 0.65

Implementers 1

ConnectionManagersrc/dialects/abstract/connection-manag

Calls

no outgoing calls

Tested by

no test coverage detected