nkanaev / yarr

yet another rss reader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres Support

jgkawell opened this issue · comments

The author of yarr has already made it clear here that the application is feature complete so this issue is not me asking for this support to be added but instead is just a note to anyone else in my position on how to get this functionality.

I wanted a simple, self-hosted RSS feed manager/reader so that I could both own my data and sync my RSS feeds between all my devices. I found yarr and it was perfect except for its dependency on sqlite. I typically run my self-hosted services in Kubernetes and like to reduce the number of services that are stateful. To do this I run a PostgreSQL instance and connect most of my services to it so that I can centralize backups and maintenance of the persistence layer.

To this end, I forked yarr and removed both the sqlite dependency as well as all the bits that were used exclusively for running it as a local application. If you also want PostgreSQL support feel free to check out my fork and use it/fork it yourself as you wish. I have Docker images being published from it here which you can use as is if you don't want to build it yourself.

One final note: if you want support for other databases (MySQL, MariaDB, etc.) please open an issue or a PR on my fork and I'll take a look at making that possible. I'm using the pgx/stdlib driver so making the driver swappable for other databases should be fairly straightforward.

Links: