prorm API Reference
    Preparing search index...

    Class BatchTransform<T>

    Transform stream that batches records into arrays

    Type Parameters

    • T = any

    Hierarchy

    • Transform
      • BatchTransform
    Index
    • Transform - batch records

      Parameters

      • record: T
      • encoding: string
      • callback: (error?: Error | null, data?: T[]) => void

      Returns void

    • Flush remaining records in buffer

      Parameters

      • callback: (error?: Error | null, data?: T[]) => void

      Returns void