Functions§
- clear_
all_ clips - Delete all clips from the store. Returns the number of rows deleted.
- clip_
count - Return the total number of clips in the store.
- count_
clips_ before - Return the number of clips whose
created_at(ms) is beforecutoff_ms. Used by the Settings pane “preview retention change” dialog. - delete_
clip - enforce_
offline_ cap - Drop the oldest unsynced clips that exceed
max, keeping the newestmax. Returns the number of rows deleted. - get_
clip - get_
last_ flush_ at - Read the epoch-millisecond timestamp of the last successful backlog flush.
Returns
Noneif no flush has ever been recorded. - insert_
clip - list_
alert_ prefs - list_
clips - list_
devices - list_
retention - list_
sources - list_
unsynced_ clips - Return all clips that have not yet been synced to the relay, ordered oldest first.
- replace_
id_ and_ mark_ synced - Rename a clip’s id (e.g. temp local id → relay-assigned ULID) and mark it synced. Returns the number of rows updated (0 if the old id was not found).
- search_
clips - set_
alert_ pref - set_
last_ flush_ at - Persist the epoch-millisecond timestamp of a successful backlog flush.
- set_
pinned - set_
retention - set_
watermark - upsert_
device - watermark