cynkra / dm

Working with relational data models in R
https://dm.cynkra.com
Other
497 stars 50 forks source link

New `dm_add_rk()` (referencing key?) #2217

Open krlmlr opened 3 months ago

krlmlr commented 3 months ago

Like dm_add_fk() but with arguments reversed -- referenced table first, then referencing column, then referencing table. No fourth argument.

Rationale: This allows dm_add_rk() to be copy-pasted from a dm_add_pk() call that is likely to also exist close by in the code.

jranke commented 2 months ago

Good idea, this will make the creation of dm objects easier.