elioria-sst-x
    Preparing search index...

    Class SupabaseLtcatControlAnalysisRepository

    Index
    db: any

    The db value.

    • Generated

      Executes create.

      Parameters

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

        The data value.

      Returns Promise<LtcatControlAnalysis>

      The function result.

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

      Behavior: Async; accepts data; returns a value; invokes this.db.insert(ltcatControlAnalyses).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-control-analysis.repository.ts, run delete.

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

    • Generated

      Returns the result of findByAssessment.

      Parameters

      • assessmentId: string

        The assessmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatControlAnalysis[]>

      The function result.

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatControlAnalysis | null>

      The function result.

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

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

    • Generated

      Returns the result of findByRevision.

      Parameters

      • revisionId: string

        The revisionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<LtcatControlAnalysis[]>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • patch: Partial<LtcatControlAnalysis>

        The patch value.

      Returns Promise<LtcatControlAnalysis | null>

      The function result.

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

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