elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionNrRequirementRepository

    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<boolean>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-nr-requirement.repository.ts, run delete.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionNrRequirement | null>

      The function result.

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

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

    • Generated

      Returns the result of findByNr.

      Parameters

      • nrNumber: string

        The nrNumber value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionNrRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-nr-requirement.repository.ts, retrieve data through findByNr.

      Behavior: Async; accepts nrNumber and tenantId; returns a value; invokes this.db.select().from(inspectionNrRequirements) .where(and(e.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionNrRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-nr-requirement.repository.ts, retrieve data through findByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db.select().from(inspectionNrRequirements) .where(eq(in.