PipeStreamSession
Defined in: src/client/pipe.ts:85
StreamSession implementation for the pipe/subprocess transport. Drives lockstep streaming over a single bidirectional pipe: each PipeStreamSession.exchange or iteration step writes one input batch and reads one output batch. Holds the connection’s single-threaded busy lock until closed.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PipeStreamSession(opts): PipeStreamSession;Defined in: src/client/pipe.ts:99
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
opts | { externalConfig?: ExternalLocationConfig; header: Record<string, any> | null; onLog?: (msg) => void; outputSchema: Schema; reader: IpcStreamReader; releaseBusy: () => void; setDrainPromise: (p) => void; writeFn: WriteFn; } |
opts.externalConfig? | ExternalLocationConfig |
opts.header | Record<string, any> | null |
opts.onLog? | (msg) => void |
opts.outputSchema | Schema |
opts.reader | IpcStreamReader |
opts.releaseBusy | () => void |
opts.setDrainPromise | (p) => void |
opts.writeFn | WriteFn |
Returns
Section titled “Returns”PipeStreamSession
Accessors
Section titled “Accessors”header
Section titled “header”Get Signature
Section titled “Get Signature”get header(): Record<string, any> | null;Defined in: src/client/pipe.ts:120
The stream’s one-time header row, or null if the method declares no header.
Returns
Section titled “Returns”Record<string, any> | null
The method’s header row (returned once at stream start), or null if the method declares no header.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”[asyncIterator]()
Section titled “[asyncIterator]()”asyncIterator: AsyncIterableIterator<Record<string, any>[]>;Defined in: src/client/pipe.ts:293
Iterate over producer stream batches (lockstep).
Returns
Section titled “Returns”AsyncIterableIterator<Record<string, any>[]>
Implementation of
Section titled “Implementation of”close()
Section titled “close()”close(): void;Defined in: src/client/pipe.ts:351
End the stream: close the input side (or send an empty stream if nothing was sent yet) and drain the server’s remaining output in the background, releasing the connection’s busy lock once the drain completes.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”exchange()
Section titled “exchange()”exchange(input): Promise<Record<string, any>[]>;Defined in: src/client/pipe.ts:168
Send an exchange request and return the data rows.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | Record<string, any>[] |
Returns
Section titled “Returns”Promise<Record<string, any>[]>