@newspapper/core
    Preparing search index...

    Function insertFeedItems

    • Store a source's items. New (source_id, guid) pairs are inserted, known ones are left exactly as they are (ON CONFLICT DO NOTHING), so read state and the first fetch time survive every refresh. Items without an absolute http(s) link are skipped. Returns how many rows were inserted.

      Parameters

      • db: Database
      • sourceId: string
      • items: readonly NewFeedItem[]
      • fetchedAt: string

      Returns number