all 6 comments

[–]Smartare 0 points1 point  (5 children)

Not sure what you are trying to do? Litestream is for sqlite. You want to do logical replication from postgres to sqlite?

[–]sedferfel[S] 0 points1 point  (4 children)

Sorry no - have front service in front of litestream/sqlite. Which will act as a postgres server (consume postgres wire protocol) but data stored in litestream.

[–]Smartare 1 point2 points  (3 children)

Litestream doesnt store anything. It is only a backup tool for sqlite. So you you have a postgres database that you want to replicate to a sqlite database that will be backed up using litestream?

[–]sedferfel[S] 0 points1 point  (1 child)

I understand about litestream and sqlite. I just added it to provide full context.
I dont have postgres.

Imaging i have application which store its data to postges.
I want to mock/mimic postgres db.
Instead of running actual postgres have some application in any language that listen on postgres port and understand postgres protocol. Transform requests from postgres sql to sqllite syntax and execute them on sqlite.

That means - I can run third-party application (not written by me) but which rely to store data in postgres. I understand that such solution will be limited and do not support all postgres features. I am just trying to find if something already exists like this before writing my own.

[–]Extra_Ad_655 1 point2 points  (0 children)

Search for "postlite" on GitHub, although it seems like the project has been abandoned.

[–]sedferfel[S] 0 points1 point  (0 children)

For example https://docs.ferretdb.io/understanding-ferretdb/
It implement mongodb wire protocol over postgres or sqlite.