Remove feeds associated with a channel when it is deleted

This commit is contained in:
2025-01-09 12:20:23 -05:00
parent e1b470b27c
commit b8ea689cc3
3 changed files with 34 additions and 0 deletions

View File

@ -63,6 +63,9 @@ zblock_feed_info_err zblock_feed_info_delete(PGconn *conn, const char *url, u64s
// deletes all feeds associated with a guild from the database
zblock_feed_info_err zblock_feed_info_delete_all_guild(PGconn *conn, u64snowflake guild_id);
// deletes all feeds associated with a channel from the database
zblock_feed_info_err zblock_feed_info_delete_all_channel(PGconn *conn, u64snowflake channel_id);
// updates the last_pubDate field of a given feed in the database
zblock_feed_info_err zblock_feed_info_update(PGconn *conn, zblock_feed_info_minimal *feed);