elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingAttendanceRepository

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Generated

      Executes delete.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/training-attendance.repository.ts, run delete.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db .delete(trainingAttendanceRecords) .where.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingAttendanceRecord[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-attendance.repository.ts, retrieve data through findByCollaborator.

      Behavior: Async; accepts collaboratorId and tenantId; returns a value; invokes this.db .select() .from(trainingAttendanceRecords) .where( a.

    • Generated

      Returns the result of findBySession.

      Parameters

      • sessionId: string

        The sessionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingAttendanceRecord[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-attendance.repository.ts, retrieve data through findBySession.

      Behavior: Async; accepts sessionId and tenantId; returns a value; invokes this.db .select() .from(trainingAttendanceRecords) .where( a.

    • Generated

      Returns the result of findBySessionAndCollaborator.

      Parameters

      • sessionId: string

        The sessionId value.

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingAttendanceRecord | null>

      The function result.

      Objective: In module packages/db/src/repositories/training-attendance.repository.ts, retrieve data through findBySessionAndCollaborator.

      Behavior: Async; accepts sessionId and collaboratorId and tenantId; returns a value; invokes this.db .select() .from(trainingAttendanceRecords) .where( a.