Expand description
Chat database operations — CRUD for the chats table.
Structs§
- Slim
ChatDB - Slim version of Chat for database storage.
Functions§
- delete_
chat - Delete a chat and all its messages from the database.
chat_identifieris the string id (npub for DMs, channel id for Communities) — NOT the integer PK. - get_
all_ chats - Get all chats from the database.
- save_
slim_ chat - Upsert a chat to the database.