home / chat

sliding_sync_membership_snapshots

8 rows where room_id = "!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one"

✎ View and edit SQL

This data as json, CSV (advanced)

Link room_id user_id sender membership_event_id membership forgotten event_stream_ordering event_instance_name has_known_state room_type room_name is_encrypted tombstone_successor_room_id
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@james:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @james:matrix.jamesst.one @james:matrix.jamesst.one $PrFtvGzMZIxoqZrQl5fJHYBx0XzPputX8fK15jfrcGc join 0 2094 2094 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one $8SB7XW1ivMI8AtVBtCZnLw_0sO_-zkpSOZ5b0g1BgO4 join 0 1948 1948 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one $in6zF5A70u-EbrswCJKFVBYWDXrLquylVk90xVew9-c join 0 1401 1401 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one @slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one $mOdO6LPftndKApeFgOG4z6oNbvEssFINFulDaUanprg join 0 1533 1533 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one @slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one $3me90dVqlU3c3tNZOnHWvjHKTKvLb8UcET1AcKPkbKU join 0 1674 1674 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-uk3qk3wbh:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-uk3qk3wbh:matrix.jamesst.one @slack_t0qh48pl4-uk3qk3wbh:matrix.jamesst.one $zLo-hcYxU7PMjj0_cjx5ci24oihVm0lXD3lQG1TMgwM join 0 1772 1772 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slack_t0qh48pl4-upj758cjz:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slack_t0qh48pl4-upj758cjz:matrix.jamesst.one @slack_t0qh48pl4-upj758cjz:matrix.jamesst.one $Ks3QT5gIc6GbKUR4__uyDCearMP5or2Lo7tOMc5lSDk join 0 1863 1863 master 1   utc-whiteboard-product-management 0  
!BcXnWMtRzAnQcBRJTw:matrix.jamesst.one,@slackbot:matrix.jamesst.one !BcXnWMtRzAnQcBRJTw:matrix.jamesst.one @slackbot:matrix.jamesst.one @slackbot:matrix.jamesst.one $rWhjTFLNIb6j4RLW3Pa0J---G-hxo0Ikfkx_pBxi5WQ join 0 613 613 master 1     0  

Advanced export

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

CSV options:

CREATE TABLE sliding_sync_membership_snapshots(
    room_id TEXT NOT NULL REFERENCES rooms(room_id),
    user_id TEXT NOT NULL,
    -- Useful to be able to tell leaves from kicks (where the `user_id` is different from the `sender`)
    sender TEXT NOT NULL,
    membership_event_id TEXT NOT NULL REFERENCES events(event_id),
    membership TEXT NOT NULL,
    -- This is an integer just to match `room_memberships` and also means we don't need
    -- to do any casting.
    forgotten INTEGER DEFAULT 0 NOT NULL,
    -- `stream_ordering` of the `membership_event_id`
    event_stream_ordering BIGINT NOT NULL REFERENCES events(stream_ordering),
    -- `instance_name` of the worker that persisted the `membership_event_id`.
    -- Useful for crafting `PersistedEventPosition(...)`
    event_instance_name TEXT NOT NULL,
    -- For remote invites/knocks that don't include any stripped state, we want to be
    -- able to distinguish between a room with `None` as valid value for some state and
    -- room where the state is completely unknown. Basically, this should be True unless
    -- no stripped state was provided for a remote invite/knock (False).
    has_known_state BOOLEAN DEFAULT FALSE NOT NULL,
    -- `m.room.create` -> `content.type` (according to the current state at the time of
    -- the membership).
    --
    -- Useful for the `spaces`/`not_spaces` filter in the Sliding Sync API
    room_type TEXT,
    -- `m.room.name` -> `content.name` (according to the current state at the time of
    -- the membership).
    --
    -- Useful for the room meta data and `room_name_like` filter in the Sliding Sync API
    room_name TEXT,
    -- `m.room.encryption` -> `content.algorithm` (according to the current state at the
    -- time of the membership).
    --
    -- 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, user_id)
);
CREATE UNIQUE INDEX sliding_sync_membership_snapshots_event_stream_ordering ON sliding_sync_membership_snapshots(event_stream_ordering);
CREATE INDEX sliding_sync_membership_snapshots_membership_event_id_idx ON sliding_sync_membership_snapshots (membership_event_id) ;
CREATE INDEX sliding_sync_membership_snapshots_user_id_stream_ordering ON sliding_sync_membership_snapshots (user_id, event_stream_ordering) ;
Powered by Datasette · Queries took 31.434ms