API 参考
    正在准备搜索索引...

    类型别名 TypeOrmModuleOptions

    TypeOrmModuleOptions: {
        autoLoadEntities?: boolean;
        manualInitialization?: boolean;
        retryAttempts?: number;
        retryDelay?: number;
        toRetry?: (err: any) => boolean;
        verboseRetryLog?: boolean;
    } & Partial<DataSourceOptions>

    类型声明

    • 可选autoLoadEntities?: boolean

      If true, entities will be loaded automatically.

    • 可选manualInitialization?: boolean

      If true database initialization will not be performed during module initialization. This means that database connection will not be established and migrations will not run. Database initialization will have to be performed manually using DataSource.initialize and it will have to implement own retry mechanism (if necessary).

    • 可选retryAttempts?: number

      Number of times to retry connecting Default: 10

    • 可选retryDelay?: number

      Delay between connection retry attempts (ms) Default: 3000

    • 可选toRetry?: (err: any) => boolean

      Function that determines whether the module should attempt to connect upon failure.

    • 可选verboseRetryLog?: boolean

      If true, will show verbose error messages on each connection retry.