Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data-model] Implement support of custom primary key #344

Open
thekangaroofactory opened this issue Oct 25, 2024 · 0 comments
Open

[data-model] Implement support of custom primary key #344

thekangaroofactory opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thekangaroofactory
Copy link
Owner

By default, id is the primary key create along with a new data model.
In case of import, the imported data may already contain a primary key that is not named id

Add a column in the data model to set the primary key (a single value in the column)
After data model is loaded, store the primary key name in cache to avoid duplicating dm[dm$primary, ]$name
Make sure id is not used anywhere in the code; use the primary key name instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant