News for hackers. Stuff that matters.
Re:ORMs Are Backwards by Scarblac on Wednesday September 04, 2019 @04:09AM (#20875006)
I know about the relational model and used to work with raw SQL for years.

But this is the stack I often work with now:

- Postgres

- Django ORM

- Django REST Framework

- Auto-generated OpenAPI Typescript functions

- A Redux store

- My React app

In other words, four ORM-like non-relational frameworks stacked on top of each other between Postgres and my app.

A generic solution for "complex, possibly unanticipated questions" would need to work through all of those layers.

Re:ORMs Are Backwards by sul4bh on Wednesday September 04, 2019 @01:25PM (#20879392)
What do you use for "Auto-generated OpenAPI Typescript functions" ?
Re:ORMs Are Backwards by Scarblac on Wednesday September 04, 2019 @02:23PM (#20879991)
Django-rest-swagger to have a Swagger / OpenAPI spec on top of Django REST Framework, and then OpenAPITools/openapi-generator to generate Typescript code.
Re:ORMs Are Backwards by mcamac on Wednesday September 04, 2019 @01:35PM (#20879488)
cool -- what do you use to generate OpenAPI Typescript functions?