Function stream

  • Streams values from a query.

    Type Parameters

    • T
    • I = any[]

    Parameters

    • client: Client | PoolClient

      A connected client

    • config: {
          text: string;
          values?: QueryConfigValues<I>;
          types?: CustomTypesConfig;
          batchSize?: number;
          highWaterMark?: number;
          rowMode?: "array";
      }

      A query stream configuration object

      • text: string
      • Optional values?: QueryConfigValues<I>
      • Optional types?: CustomTypesConfig
      • Optional batchSize?: number
      • Optional highWaterMark?: number
      • Optional rowMode?: "array"

    Returns Observable<T>

    Public Api