Skip to content

@142vip.nest typeorm.类.ConnectionCreatedEvent

mmdapl edited this page Oct 8, 2026 · 1 revision

API 参考 / @142vip/nest-typeorm / ConnectionCreatedEvent

类: ConnectionCreatedEvent

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/typings.d.ts:2091

An event published when a connection pool creates a new connection

theme_extends

构造函数

构造函数

new ConnectionCreatedEvent(): ConnectionCreatedEvent

返回

ConnectionCreatedEvent

继承自

ConnectionPoolMonitoringEvent.constructor

属性

address

address: string

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/typings.d.ts:2171

The address (host/port pair) of the pool

继承自

ConnectionPoolMonitoringEvent.address


connectionId

connectionId: number | "<monitor>"

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/typings.d.ts:2093

A monotonically increasing, per-pool id for the newly created connection


time

time: Date

定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/typings.d.ts:2169

A timestamp when the event was created

继承自

ConnectionPoolMonitoringEvent.time

Clone this wiki locally