4 ms·
A many-to-many table as IgorPartola mentioned, other examples include versioned or temporal storage, i.e. a "history" table where the primary key is the PK of t
by zzzeek 15y ago
A many-to-many table as IgorPartola mentioned, other examples include versioned or temporal storage, i.e. a "history" table where the primary key is the PK of the parent table + a version id.
SQLAlchemy can also map to views or selects - if a view or select is against multiple tables, now you have a composite primary key by nature. A core piece of SQLAlchemy is that we select rows from many things besides physical tables.
- parfe 15y ago>A core piece of SQLAlchemy is that we select rows from many things besides physical tables. Your sentence is a key part about the differences between Django ORM and SqlALchemy. Every article should include it.