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

Add export_keys optional param to native_db macro #246

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 5, 2024

  1. Add export_keys optional param to native_db macro

    This adds an optional `export_keys` bool param to the `native_db` proc macro that controls the visibility of the model's secondary key enum.
    
    Default value is `false`, which matches the existing behaviour of setting the visibility of the secondary key enum to `pub(crate)`. Using `#[native_db(export_keys = true)]` changes this to `pub`.
    
    See vincent-herlemont#220 for discussion.
    Grimeh committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    b8b845d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b62d56 View commit details
    Browse the repository at this point in the history