|
|
|
|
|
by dragonwriter
1239 days ago
|
|
Essentially all of the actual information is encoded in the foreign key constraints (in combination with uniqueness constraints.) What ORMs provide that SQL doesn’t isn’t much encoding of information (they usually have facilities to distinguish data tables from pure join tables, and to distinguish 1:1 and 1:M, (M>0) relations from 1:(0-1) and 1:M, (M>=0) ones, so they do encode some additional information), but provide convenient syntactic shorthands for the client to use the encoded relationships. This would be easy to add to SQL, as syntax sugar, https://news.ycombinator.com/item?id=34587412 |
|
Just a new language to replace sql, that is still sql but just better designed with the benefit of 30+ years of language design improvements.