elioria-sst-x
    Preparing search index...

    Class SupabaseGheTrainingRequirementRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateGheTrainingRequirementData

        The data value.

      Returns Promise<GheTrainingRequirement>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-training-requirement.repository.ts, run create.

      Behavior: Async; accepts data; returns a value; invokes this.db .insert(gheTrainingRequirements) .values({ tenantId:.

    • 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/ghe-training-requirement.repository.ts, run delete.

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

    • Generated

      Returns the result of findByGhe.

      Parameters

      • gheId: string

        The gheId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheTrainingRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-training-requirement.repository.ts, retrieve data through findByGhe.

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