Kinda thinking a lot of rest APIs could just be SQL logic.
Postgrest is pretty much like that but I wonder if you could build a more general tool. SQL + protobufs or SQL + OpenAPI schema.
Kinda thinking a lot of rest APIs could just be SQL logic.
Postgrest is pretty much like that but I wonder if you could build a more general tool. SQL + protobufs or SQL + OpenAPI schema.
https://www.tinybird.co/ is pretty close to this.
Except I'm not sure if they are read only or not.
However I had more of a slightly diff idea.
More like instead of having aweb server + orm.
You just write SQL for an endpoint which maps the storage data to public response.
Essentially what the ORM was doing. And if the server is just managing connection and calling then endpoint query. Then packing the data to JSON response. It can just be shared/generic.
But I was more thinking any database. And you still get to define/control a public REST interface.
But I was more thinking of allowing people to choose any db and be able to expose a rest API on top of that.
Postgres, bigquery, supabase whatever.
So you can quickly deploy a public facing rest API on views from that data.