> ## 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.

# QuestDB table observations

> Observe keyed QuestDB rows through its HTTPS SQL API.

Use the [Documents mount](https://docs.bijection.com/integrations/native-mongodb.md#mount-and-start) with
`questDbTable(origin, credential, data)` pointing to the QuestDB SQL
HTTPS origin. Seal a read-only QuestDB Enterprise or Cloud bearer token.
Bind the receiver and the mount under the same
[`data` label](https://docs.bijection.com/integrations/native-connectors#installer-bound-labels).

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ selection: { mode: "questdb", table: { table: "orders", key: "code", columns: ["ts", "qty"] } } }
```

QuestDB speaks PostgreSQL wire protocol, but the PostgreSQL relation mode
requires the PostgreSQL primary-key catalog, relation locks and a
repeatable-read transaction. This mode sends a fixed read-only SQL
statement to the HTTPS `/api/v1/sql/execute` endpoint and decodes its column metadata
and positional dataset. The installer must maintain a unique,
immutable `STRING` or `VARCHAR` key of one to 384 ASCII letters, digits,
underscores or hyphens. Configure up to sixteen additional columns.
Values use QuestDB's REST JSON encoding. Integers beyond the exact
JavaScript range refuse the page.

One answer holds one row and up to 36 KiB. Each result and its last key
commit together. The next query starts strictly above the key and an
empty answer restarts the sweep. Reads are statement-scoped. Missing
rows stay published.

[QuestDB PostgreSQL wire protocol](https://questdb.com/docs/connect/compatibility/pgwire/overview/) ·
[QuestDB SQL REST API](https://questdb.com/docs/connect/compatibility/rest-api/)


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