Join Nostr
2025-02-22 01:37:40 UTC
in reply to

Mitch Downey :pci: on Nostr: nprofile1q…4h82d nprofile1q…qnrc9 I can't remember any raw sql I've written for ...

I can't remember any raw sql I've written for pv2 yet, except for the table / index / etc creation logic.

the outermost parser function looks like this:

https://github.com/podverse/podverse-parser/blob/v5-develop/src/lib/rss/parser.ts#L43

going deeper, item parsing looks like this. the transactionalEntityManager is what makes the orm queries within these functions happen in a transaction:

https://github.com/podverse/podverse-parser/blob/v5-develop/src/lib/rss/item/item.ts#L197

and here's what the ItemAbout parsing looks like:

https://github.com/podverse/podverse-parser/blob/v5-develop/src/lib/rss/item/itemAbout.ts

and...