可选autoLoadEntities?: boolean可选manualInitialization?: booleanIf 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?: numberNumber of times to retry connecting Default: 10
可选retryDelay?: numberDelay between connection retry attempts (ms) Default: 3000
可选toRetry?: (err: any) => booleanFunction that determines whether the module should attempt to connect upon failure.
可选verboseRetryLog?: booleanIf true, will show verbose error messages on each connection retry.
If
true, entities will be loaded automatically.