home / chat

sliding_sync_membership_snapshots

12 rows where room_id = "!LZlkjmrdSOMzgPpPqy: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
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@james:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @james:matrix.jamesst.one @james:matrix.jamesst.one $bgLr1IKhMkjSjhpjpFQMI4HVY-5shNeJoPE0zt74d2M join 0 2061 2061 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-b013m73sa4w:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-b013m73sa4w:matrix.jamesst.one @slack_t0qh48pl4-b013m73sa4w:matrix.jamesst.one $X-HQi3pjSpUxjJv4IY1vLd5To3zGSibhGb6xvItm0Dg join 0 3613 3613 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u013d6ufzfz:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u013d6ufzfz:matrix.jamesst.one @slack_t0qh48pl4-u013d6ufzfz:matrix.jamesst.one $skwfkQA1WS2D0EpPLBn4LFRU-9smgjZwjYWovzFuDI8 join 0 8102 8102 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one $NEh7gwDTJID6gOcoVjLn-ErshsSGgUfRAyy4F697WOI join 0 1441 1441 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u087d1p9zmy:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u087d1p9zmy:matrix.jamesst.one @slack_t0qh48pl4-u087d1p9zmy:matrix.jamesst.one $G_n2Q0qIU9qmuHrXvaYojVSH4QNtRQ-ylSe9j42Xt58 join 0 8106 8106 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one $sHtxJszutuyASJXIssOf8ZNjCGiYVdhppT1OLRqSnuU join 0 1658 1658 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u0qk730nn:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u0qk730nn:matrix.jamesst.one @slack_t0qh48pl4-u0qk730nn:matrix.jamesst.one $Pe7zsj-xOlabZM2EY3XKEHRIJ-0azzDgogR6a083kOM join 0 1754 1754 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one @slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one $isrRbLby7YUFpFQ4qMZ_wUiyS9w0fetMpyWZGmBXedg join 0 1848 1848 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one @slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one $ZNyIc5xwiNi93EfjMLTs_MDr-LIiiUG_moL-hfpUZ00 join 0 1935 1935 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one @slack_t0qh48pl4-u0qp3lk0f:matrix.jamesst.one $_kK7Fw2UyQhOW_tW5MX1EJ-lUHQEhPJgwAhyqI-O6a8 join 0 2017 2017 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slack_t0qh48pl4-uk452s31u:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slack_t0qh48pl4-uk452s31u:matrix.jamesst.one @slack_t0qh48pl4-uk452s31u:matrix.jamesst.one $9zse9jVCcRaPkhhk4enoz-axxwxhUH2e2mOoz0yQyGo join 0 6323 6323 master 1   utc-whiteboard-alerts 0  
!LZlkjmrdSOMzgPpPqy:matrix.jamesst.one,@slackbot:matrix.jamesst.one !LZlkjmrdSOMzgPpPqy:matrix.jamesst.one @slackbot:matrix.jamesst.one @slackbot:matrix.jamesst.one $V9IciqDZrxrQWsFnXtzU3A27T4WBJZISQT8kceupF_M join 0 726 726 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 15.397ms