Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
When I tried to write one, I couldn't find a way to do it at compile time without generics. You can do it before compile time with code generation, or after compilation by coding dynamic objects and end up with something like sqlalchemy, but I couldn't do it at compile time.
ent [1] is what I've been happiest with. It uses code generation, and has an extension system so you can generate your own custom code with the models. I've seen a GraphQL extension and a REST extension, but haven't used either enough to comment beyond that they were easy to set up. Took like 20 minutes and now all my models transparently get GraphQL endpoints.
So far I've been happy with it, but we'll see in a couple of years.
1. https://entgo.io/