maragudk / goqite

Go queue library built on SQLite and inspired by AWS SQS.
https://maragudk.github.io/goqite/
MIT License
435 stars 13 forks source link

feature request: add other db drivers #30

Open maltegrosse opened 8 months ago

maltegrosse commented 8 months ago

Great work Markus - exactly what I need in some side project. Is it possible to add other database drivers, for example postgres, like in gorm?

markuswustenberg commented 8 months ago

@maltegrosse happy to hear you find it useful. :)

I've considered the same, but I haven't tried it yet. My main focus is SQLite, definitely, but if adding Postgres is trivial, I would consider it. It basically depends on whether the queries work in Postgres as well as-is, or if they need to be adjusted.

saurori commented 8 months ago

@maltegrosse might want to check out River / @markuswustenberg if you want an idea of what is involved for adding Postgres driver

markuswustenberg commented 8 months ago

@saurori thanks. That solution does quite a lot more than this queue, though. I think I could get away with just rewriting the queries a bit and importing a different SQL driver.

maltegrosse commented 8 months ago

would it be a big performance loss by just using gorm?

markuswustenberg commented 8 months ago

I don’t know. But I don’t want an ORM dependency, unfortunately. :) I like that this project has no external dependencies apart from the SQLite driver clients being.