vlocode-project - v2.4.3
    Preparing search index...

    In-memory store of org records extracted per SObject type; used by the DatapackComparer to resolve record lookups and comparisons locally instead of running (thousands of) filtered org queries.

    Each table is extracted with a single streamed bulk query selecting the union of the compared fields; lookups against the store use the same canonical value indexing and OrgRecordComparer.fieldEquals verification as the org based record matching so the matching semantics are identical.

    Index

    Constructors

    Properties

    logger: Logger
    recordComparer: OrgRecordComparer
    salesforceService: SalesforceService
    tables: Map<string, OrgDataTable> = ...

    Methods

    • Get an extracted org record by ID; returns undefined when the record does not exist in the org.

      Parameters

      • sobjectType: string
      • id: string

      Returns Record<string, unknown> | undefined

    • Get the extracted org records matching the specified filter using OrgRecordComparer.fieldEquals matching semantics; equivalent to an org lookup with the same (equality) filter.

      Parameters

      • sobjectType: string
      • filter: Record<string, unknown>

      Returns Record<string, unknown>[]

    • Extract all org records of the specified type into the store. Skips extraction when the number of records in the org exceeds the specified limit in which case lookups fall back to org queries.

      Parameters

      • sobjectType: string

        SObject type to extract

      • fields: Iterable<string>

        Fields to extract; the Id field is always included

      • maxRows: number

        Maximum number of org rows to extract for this type

      • OptionalcancelToken: CancellationToken

        An optional cancellation token to abort the extraction

      Returns Promise<boolean>

      true when the type is extracted into the store; false when the type exceeds the limits