home / chat

sliding_sync_membership_snapshots

11 rows where room_id = "!CYeFMUQdkRwYBPsJnG: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
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@james:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @james:matrix.jamesst.one @james:matrix.jamesst.one $1rS_g5BY7e_1s1WqlI2eWyWjU8fmjzQG6tDQ1116H0Y join 0 2087 2087 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-b0a2pfak6cb:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-b0a2pfak6cb:matrix.jamesst.one @slack_t0qh48pl4-b0a2pfak6cb:matrix.jamesst.one $nhlPhiVaCzLmxwF5xpYBzSM7yphpo5ee-fhaaD_Sazk join 0 3686 3686 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u0608b22pja:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u0608b22pja:matrix.jamesst.one @slack_t0qh48pl4-u0608b22pja:matrix.jamesst.one $9EVUhcZ2eHMSF265FFH3CWXR0YkSPDtNhY77Fb51E94 join 0 3702 3702 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one $c8i9sWkwqpazm1DxU6Vqo2nhqFp10AA2pp2XfE8fidU join 0 1810 1810 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one $EnnndxTrg_eHylb-TCxpgwuMSYB0A_bYbbHAlH6NcS4 join 0 1940 1940 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one @slack_t0qh48pl4-u0qnzutjn:matrix.jamesst.one $TzVWXUZyvVIkZhFBizscEGZX8lMYhxmiSWn1gqPJ6ZE join 0 2021 2021 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one @slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one $OvaXOlerxK1kXpoMuYWmIRO_hODcxj0AyUr03S2-x04 join 0 1453 1453 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u3p7e6ucb:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u3p7e6ucb:matrix.jamesst.one @slack_t0qh48pl4-u3p7e6ucb:matrix.jamesst.one $2RPFxNFDDNdcIn32X2JLQnp7ErjPbwfTSqoFyy9ajbQ join 0 1598 1598 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one @slack_t0qh48pl4-u5g22hjnp:matrix.jamesst.one $4HSTG_hgMGtQZ_naoSGTaY3tobyJJ_eFJYgZQhyb6VU join 0 1714 1714 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slack_t0qh48pl4-uk452s31u:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slack_t0qh48pl4-uk452s31u:matrix.jamesst.one @slack_t0qh48pl4-uk452s31u:matrix.jamesst.one $8RfMu3wBJUNVn7D4cVMkhtJQ6lRD3uaCKPBSXWdsc0s join 0 3760 3760 master 1   whiteboard-live-alerts 0  
!CYeFMUQdkRwYBPsJnG:matrix.jamesst.one,@slackbot:matrix.jamesst.one !CYeFMUQdkRwYBPsJnG:matrix.jamesst.one @slackbot:matrix.jamesst.one @slackbot:matrix.jamesst.one $Yu-ZPeETXxg-gbmmK14AI_ykMb-Z1httKSe7mZ69wmA join 0 860 860 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 23.472ms