default: {
    getAttentanceThreshold(
        pool: Pool,
    ): Promise<[RowDataPacket[], FieldPacket[]]>;
    getServerSettings(pool: Pool): Promise<[RowDataPacket[], FieldPacket[]]>;
    updateServerSettings(
        pool: Pool,
        speedofhash: number,
        leewayspeed: number,
        timeouttime: number,
        attendancethreshold: number,
    ): Promise<[QueryResult, FieldPacket[]]>;
} = ...

Type declaration

  • getAttentanceThreshold:function
    • Fetches the attendance threshold.

      Parameters

      • pool: Pool

        The MySQL connection pool.

      Returns Promise<[RowDataPacket[], FieldPacket[]]>

      A promise that resolves to the attendance threshold.

  • getServerSettings:function
    • Fetches server settings.

      Parameters

      • pool: Pool

        The MySQL connection pool.

      Returns Promise<[RowDataPacket[], FieldPacket[]]>

      A promise that resolves to an array of server settings.

  • updateServerSettings:function
    • Updates server settings.

      Parameters

      • pool: Pool

        The MySQL connection pool.

      • speedofhash: number

        The speed of hash.

      • leewayspeed: number

        The leeway speed.

      • timeouttime: number

        The timeout time.

      • attendancethreshold: number

        The attendance threshold.

      Returns Promise<[QueryResult, FieldPacket[]]>

      A promise that resolves to the result of the update.