SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then

List streams

Edit this page
Stream · Related pages
Posted: 2026-09-16 · Report this thread
brandon Site Admin brandon profile Posts: 96
Streams(ctx context.Context) ([]*Stream, error)

Returns every registered stream in the client’s SQLStreams system, ordered by name. The result includes built-in system streams and has no pagination.

Example

Use an initialized client.

streams, err := client.Streams(ctx)
if err != nil {
return err
}
for _, stream := range streams {
fmt.Println(stream.Id, stream.Name)
}

Parameters

Parameter Type Required Description
ctx context.Context Yes Cancelling this context or reaching its deadline interrupts the database read.

Returns

Condition Return value
Streams are registered (streams, nil), containing stream objects in name order.
No streams or installation exists (nil, nil). Ranging over the slice is safe.
Read fails (nil, err).

CLI

sqlstreams stream list

Prints stream names and ids. An empty list is successful. See stream commands for output formats and flags.

Errors

Error When
Read error The database read fails or stored settings cannot be decoded.
Context cancellation or deadline error The read is interrupted by its context.