[DRAFT]This page is not published. Only visible in development mode.
Subscriptions
Subscriptions provide live, streaming queries. When underlying data changes, subscribers receive updates automatically.
Server Required
Subscriptions are long-lived streaming connections and require a running ReifyDB server. They cannot be demonstrated in the browser playground.
Create a Subscription
rql
CREATE NAMESPACE app;
CREATE TABLE app::events { id: int4, kind: utf8 };
CREATE SUBSCRIPTION {
id: int4,
kind: utf8
} AS {
FROM app::events
}A subscription defines a schema and a query. When data matching the query changes, connected clients receive the updated rows.
