elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingPrerequisiteRepository

    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-prerequisite.repository.ts, run delete.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingPrerequisite | null>

      The function result.

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

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

    • Generated

      Returns the result of findByTraining.

      Parameters

      • trainingCatalogId: string

        The trainingCatalogId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingPrerequisite[]>

      The function result.

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

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