Fork me on GitHub
#sql
<
2020-10-15
>
orestis17:10:51

If you use unique names things like powerbi can infer relationships, apparently- even without FKs.

seancorfield17:10:11

FWIW, next.jdbc's datafy/`nav` across result sets assumes :table_id (or :tableid) could be a FK relationship to :table.id, i.e., address.user_id in the address table will be assumed to link via select * from user where id = <address.user_id> when you navigate.

seancorfield17:10:29

(but you can provide your own :schema option to override that if you want)