ReadonlybinaryThe binary input format. One of: "BASE64", "HEX", "UTF-8".
ReadonlyclientThe client name.
ReadonlydbThe database name.
ReadonlyisWhether the client is closed.
ReadonlypipeThe pipe name.
ReadonlyschemaThe schema name.
Close the client. If waitForFlush is true, the client waits for all data in every channel to be flushed to Snowflake before shutting down.
Optionaloptions: { timeoutMs?: number; waitForFlush?: boolean }Close options
OptionaltimeoutMs?: numberOptional timeout in milliseconds for the flush operation.
OptionalwaitForFlush?: booleanWhether to wait for the flush to complete, defaults to true.
Get the status of multiple channels. Can fetch status for channels not opened by this client.
Names of channels to query
Initiate a flush of the client. Causes all outstanding buffered data to be flushed to Snowflake. Data can still be accepted by the client after calling this method — this is an asynchronous call that returns after the flush is initiated for all channels.
Open a channel with the given name. The channel is opened on the database/schema/pipe defined by this client. If the channel already exists, Snowflake reuses the latest persisted offset token unless a new one is provided.
Channel options
The name of the channel to open.
OptionaloffsetToken?: stringOptional offset token to set on the channel. If not provided and this reopens an existing channel, the latest persisted offset token is reused.
Wait for all buffered data in all channels managed by this client to be flushed to Snowflake. This method triggers a flush of all pending data across all channels and waits for the flush operations to complete.
Optionaloptions: { timeoutMs?: number }Wait options
OptionaltimeoutMs?: numberOptional timeout in milliseconds.
A client that is the starting point for using the Streaming Ingest client APIs.
A single client maps to exactly one account/database/schema/pipe in Snowflake; however, multiple clients can point to the same account/database/schema/pipe. Each client contains information for Snowflake authentication and authorization, and it is used to create one or more StreamingIngestChannel instances for data ingestion.
Create instances using the
createClient()function.