SQLStreams

the messaging platform that is just Postgres

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

Retrieve the system

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

Reads the installation selected by the client’s Schema. It does not create the installation or change its settings.

Example

Use an initialized client.

system, err := client.System().Get(ctx)
if err != nil {
return err
}
if system == nil {
return errors.New("SQLStreams system is not registered")
}
fmt.Println(system.Id, system.CreatedAt)

Parameters

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

Returns

Condition Return value
System is registered (system, nil), where system is the system object.
System is absent (nil, nil).
Read fails (nil, err).

CLI

sqlstreams system get

Prints the system timestamps and exits with status 0 when registered. Absence exits with status 1. See system commands for output formats and flags.

Errors

Error When
Database error The system row cannot be read.
Context cancellation or deadline error The read is interrupted by its context.