> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Firebolt SQL observations

> Read a declared relation through a running Firebolt engine.

Resolve the running engine endpoint and its account ID in Firebolt. Mount
[`@bijectionhq/app-rest`](https://docs.bijection.com/integrations/native-rest#mount-and-bind) once per
relation and bind `receivers.provider` to the fixed HTTPS engine origin.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "firebolt.sql.observations", engineOrigin,
  "/query", { kind: "bearer", secret: accessToken }, data,
);
```

Seal a service account access token with SELECT access on the relation. Set
the secret again before the token expires. Pass the same label to the receiver binder and as the app's `data`.
Initialize with the database, schema, table and the Firebolt account UUID.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "firebolt.sql.observations",
  collection: "analytics.public.Events", selection: "id", fields: ["city"],
  start: "aaf8ebf5-f90d-4b35-bf5d-e100cb784681", limit: 16 } }
```

Declare a unique, non-null bigint key and up to fifteen other columns. The
key lands as exact decimal text. Project wide numbers as text in the source
relation if their ordinary JSON number representation loses precision. Each
SELECT observes one page of up to 32 rows and 36 KiB at an exclusive key
boundary. A short page ends the sweep, and the next sweep restarts. Missing
keys remain. Keep the engine running at the reviewed endpoint.

[Firebolt Node SDK protocol implementation](https://github.com/firebolt-db/firebolt-node-sdk/tree/main/src/connection)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.