Re:Databases always have a schema (2018)
by foobarbecue on Monday February 25, 2019 @09:50AM
(#19245974)
Isn't this what, for example, Django models are? Or even js simpleschema?
[ Parent
| on HN ]
Re:Databases always have a schema (2018)
by chatmasta on Monday February 25, 2019 @09:57AM
(#19246025)
Django models only work insofar as all clients are interacting with the database through django. If even one other path to the database exists, the django models become unreliable as a source of truth. With the profliferation of microservices written in different languages, it would be nice to have a cross-language, shared-service solution as simple as django models. Something like protobufs or JSON might work well, but ultimately you still need to write a messaging and persistence layer for them, so it's not as simple as just writing a few model files.
Re:Databases always have a schema (2018)
by thecatspaw on Monday February 25, 2019 @09:55AM
(#19246015)
Basically every ORM does it. Django models, hibernate (java) as well for just 2 examples.
As far as I know, those only check at runtime (or when generating code), not at compile time.
Re:Databases always have a schema (2018)
by foobarbecue on Monday February 25, 2019 @11:57AM
(#19247004)
What you mean by compile time, when we're talking Django and nodejs?