***

title: "TypeORMHealthCheckStrategy"
generated: true
---------------

<GenerationInfo sourceFile="packages/core/src/health-check/typeorm-health-check-strategy.ts" sourceLine="39" packageName="@vendure/core" />

A [HealthCheckStrategy](/current/framework/reference/typescript-api/health-check/health-check-strategy#healthcheckstrategy) used to check the health of the database. Since v3.6.0 it is not
executed and will be removed in v4.0.0. The example below shows the pre-v3.6.0 configuration:

*Example*

```ts
import { TypeORMHealthCheckStrategy } from '@vendure/core';

export const config = {
  // ...
  systemOptions: {
    healthChecks:[
        // The default key is "database" and the default timeout is 1000ms
        new TypeORMHealthCheckStrategy({ key: 'postgres-db', timeout: 5000 }),
    ]
  }
}
```

```ts title="Signature"
class TypeORMHealthCheckStrategy implements HealthCheckStrategy {
    constructor(options?: TypeORMHealthCheckOptions)
    init(injector: Injector) => ;
    getHealthIndicator() => HealthIndicatorFunction;
}
```

* Implements: [`HealthCheckStrategy`](/current/framework/reference/typescript-api/health-check/health-check-strategy#healthcheckstrategy)

<div className="members-wrapper">

### init

\<MemberInfo kind="method" type={`(injector: <a href='/current/framework/reference/typescript-api/common/injector#injector'>Injector</a>) => `}   />

### getHealthIndicator

\<MemberInfo kind="method" type={`() => <a href='/current/framework/reference/typescript-api/health-check/health-indicator-function#healthindicatorfunction'>HealthIndicatorFunction</a>`}   />

</div>
