home / chat

sliding_sync_membership_snapshots

10 rows where room_id = "!FpRlcAsEEExygBcroU: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
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@james:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @james:matrix.jamesst.one @james:matrix.jamesst.one $rT95SmSJ08RC-I2fmDeuSjTzJ3KTX0Ee7tvxREO7F4M join 0 2103 2103 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one @slack_t0qh48pl4-u072zlzmnmc:matrix.jamesst.one $zhAdJYUZJiO7n-f9m-RYQ6abtPg4XhWbM2JR1eopg4w join 0 1986 1986 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one @slack_t0qh48pl4-u0qh48pn0:matrix.jamesst.one $MizeEDhLJ_BlsH9GYpkLi8JvqmsAJqei5kqw5u0SisE join 0 1455 1455 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u0qnmqws0:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u0qnmqws0:matrix.jamesst.one @slack_t0qh48pl4-u0qnmqws0:matrix.jamesst.one $Xr_4UR0x0vLPtTe7dYp-nPeyTfeVyGuyjtdaaSGEKeA join 0 1600 1600 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one @slack_t0qh48pl4-u0qp0kp99:matrix.jamesst.one $l2VjlJiLXL3nnigQHFASFv6PkisUOV81452oOd0Z6rk join 0 1717 1717 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one @slack_t0qh48pl4-u1z24gru3:matrix.jamesst.one $9WJkrbwZurIwMGJln_zsEUKk7LscseHWDWvrKQjuhcg join 0 1812 1812 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u5e0cm2p6:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u5e0cm2p6:matrix.jamesst.one @slack_t0qh48pl4-u5e0cm2p6:matrix.jamesst.one $57IsYuMWCqbo876rs2wlarq4LUqGd_G1Hs7zrG7L8K0 join 0 1901 1901 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-u8qnykg3g:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-u8qnykg3g:matrix.jamesst.one @slack_t0qh48pl4-u8qnykg3g:matrix.jamesst.one $1WNeOifr_xuIoPdbCkBHS3yObFrdB3jnvrkcPpfjGtU join 0 5122 5122 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slack_t0qh48pl4-urw7rghja:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slack_t0qh48pl4-urw7rghja:matrix.jamesst.one @slack_t0qh48pl4-urw7rghja:matrix.jamesst.one $OUaC_tJlCsFFtAjIAXK6y7x7_Y_cRZbRFww4E83bi8k join 0 8422 8422 master 1   trad-expense-dev 0  
!FpRlcAsEEExygBcroU:matrix.jamesst.one,@slackbot:matrix.jamesst.one !FpRlcAsEEExygBcroU:matrix.jamesst.one @slackbot:matrix.jamesst.one @slackbot:matrix.jamesst.one $8dy54Xe9hpyd0p8DnVmo6dopK6kYP-aAQXHf5e54Fd8 join 0 863 863 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 19.092ms