| От | Guyren Howe |
|---|---|
| Тема | First-class Polymorphic joins? |
| Дата | |
| Msg-id | EAB98192-33B0-4BB8-8F85-E939DD079675@gmail.com обсуждение исходный текст |
| Ответы |
Re: First-class Polymorphic joins?
Migrations (was: First-class Polymorphic joins?) |
| Список | pgsql-general |
It surprises me that no SQL database to my knowledge has polymorphic joins as a first-class feature. A polymorphic join is where a fk contains not just an id but an indicator of which table it refers to. So you could havea "tags" table, that can attach tags to any of a variety of other tables. Rails handles this by including the table nameas a string. This seems a reasonable thing to want to do, and it seems that the database could handle it by combining the fields fromthe target tables in the result. I also think migrations ought to be a first-class feature…
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера