home / chat

sliding_sync_joined_rooms

1 row where room_id = "!MLMQxHdeOdVtGdjbec:matrix.jamesst.one"

✎ View and edit SQL

This data as json, CSV (advanced)

room_id ▼ event_stream_ordering bump_stamp room_type room_name is_encrypted tombstone_successor_room_id
!MLMQxHdeOdVtGdjbec:matrix.jamesst.one 15830 15830 14992   Boby Boben 0  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE sliding_sync_joined_rooms(
    room_id TEXT NOT NULL REFERENCES rooms(room_id),
    -- The `stream_ordering` of the most-recent/latest event in the room
    event_stream_ordering BIGINT NOT NULL REFERENCES events(stream_ordering),
    -- The `stream_ordering` of the last event according to the `bump_event_types`
    bump_stamp BIGINT,
    -- `m.room.create` -> `content.type` (current state)
    --
    -- Useful for the `spaces`/`not_spaces` filter in the Sliding Sync API
    room_type TEXT,
    -- `m.room.name` -> `content.name` (current state)
    --
    -- Useful for the room meta data and `room_name_like` filter in the Sliding Sync API
    room_name TEXT,
    -- `m.room.encryption` -> `content.algorithm` (current state)
    --
    -- Useful for the `is_encrypted` filter in the Sliding Sync API
    is_encrypted BOOLEAN DEFAULT FALSE NOT NULL,
    -- `m.room.tombstone` -> `content.replacement_room` (according to the current state at the
    -- time of the membership).
    --
    -- Useful for the `include_old_rooms` functionality in the Sliding Sync API
    tombstone_successor_room_id TEXT,
    PRIMARY KEY (room_id)
);
CREATE UNIQUE INDEX sliding_sync_joined_rooms_event_stream_ordering ON sliding_sync_joined_rooms(event_stream_ordering);
Powered by Datasette · Queries took 8.201ms