elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingEvaluationRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByEnrollment.

      Parameters

      • enrollmentId: string

        The enrollmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingEvaluation | null>

      The function result.

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

      Behavior: Async; accepts enrollmentId and tenantId; returns a value; invokes this.db .select() .from(trainingEvaluations) .where( and( eq.

    • Generated

      Returns the result of findBySession.

      Parameters

      • sessionId: string

        The sessionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingEvaluation[]>

      The function result.

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

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