@storehouse/sequelize - v2.0.0
    Preparing search index...

    Interface SequelizeHealthCheckResult

    Extended health check result specific to Sequelize managers. Includes database connection details, model information, and query response time.

    interface SequelizeHealthCheckResult {
        details: {
            databaseVersion?: string;
            dialect: string;
            error?: string;
            latency?: string;
            modelCount?: number;
            models?: string[];
            name: string;
            [key: string]: unknown;
        };
        healthy: boolean;
        latency?: number;
        message?: string;
        timestamp: number;
    }

    Hierarchy

    • HealthCheckResult
      • SequelizeHealthCheckResult
    Index

    Properties

    details: {
        databaseVersion?: string;
        dialect: string;
        error?: string;
        latency?: string;
        modelCount?: number;
        models?: string[];
        name: string;
        [key: string]: unknown;
    }

    Detailed information about the Sequelize connection health.

    Type Declaration

    • [key: string]: unknown

      Additional custom properties

    • OptionaldatabaseVersion?: string

      The version of the connected database

    • dialect: string

      The database dialect (mysql, postgres, sqlite, etc.)

    • Optionalerror?: string

      Error message or stack trace if the health check failed

    • Optionallatency?: string

      Time taken to perform the health check query in milliseconds

    • OptionalmodelCount?: number

      Total count of registered models

    • Optionalmodels?: string[]

      Array of registered model names

    • name: string

      The name of the manager

    healthy: boolean

    Whether the connection is healthy

    latency?: number

    Response time in milliseconds

    message?: string

    Human-readable status message

    timestamp: number

    Unix timestamp when the check was performed