elioria-sst-x
    Preparing search index...

    Class SupabaseLtcatExposureDetailRepository

    Index
    db: any

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: Omit<LtcatExposureDetail, "id" | "createdAt" | "updatedAt">

        The data value.

      Returns Promise<LtcatExposureDetail>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, run create.

      Behavior: Async; accepts data; returns a value; invokes this.db.insert(ltcatExposureDetails).values(data).returning.

    • Generated

      Executes delete.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<boolean>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, run delete.

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

    • Generated

      Returns the result of findByAssessment.

      Parameters

      • assessmentId: string

        The assessmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatExposureDetail[]>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, retrieve data through findByAssessment.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatExposureDetail | null>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, retrieve data through findById.

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

    • Generated

      Returns the result of findByRevision.

      Parameters

      • revisionId: string

        The revisionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatExposureDetail[]>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, retrieve data through findByRevision.

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • patch: Partial<LtcatExposureDetail>

        The patch value.

      Returns Promise<LtcatExposureDetail | null>

      The function result.

      Objective: In module packages/db/src/repositories/ltcat-exposure-detail.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and patch; returns a value; invokes this.db .update(ltcatExposureDetails) .set(patch) .where(and.