elioria-sst-x
    Preparing search index...

    Class SupabaseEpiRequirementSourceRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateEpiRequirementSourceData

        The data value.

      Returns Promise<EpiRequirementSource>

      The function result.

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

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

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementSource | null>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-source.repository.ts, retrieve data through findById.

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

    • Generated

      Returns the result of findByRequirementId.

      Parameters

      • epiRequirementId: string

        The epiRequirementId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiRequirementSource[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-requirement-source.repository.ts, retrieve data through findByRequirementId.

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