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 std::set support #92

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Add std::set support #92

merged 2 commits into from
Oct 17, 2023

Conversation

leemaguire
Copy link
Contributor

@leemaguire leemaguire commented Sep 7, 2023

Adds support for std::set in object models.

    struct SetTypesObject {
        primary_key<int64_t> _id;
        std::set<int64_t> set_int_col;
        std::set<double> set_double_col;
        std::set<bool> set_bool_col;
        std::set<std::string> set_str_col;
        std::set<realm::uuid> set_uuid_col;
        std::set<realm::object_id> set_object_id_col;
        std::set<std::vector<std::uint8_t>> set_binary_col;
        std::set<std::chrono::time_point<std::chrono::system_clock>> set_date_col;
        std::set<realm::mixed> set_mixed_col;
        std::set<AllTypesObjectLink*> set_obj_col;
    };

    REALM_SCHEMA(AllTypesObject,
                 _id, set_int_col, set_double_col, set_bool_col, set_str_col, set_uuid_col, set_object_id_col, set_binary_col,
                 set_date_col, set_mixed_col, set_obj_coll)

@leemaguire leemaguire self-assigned this Sep 7, 2023
@leemaguire leemaguire marked this pull request as ready for review October 13, 2023 12:22
src/cpprealm/experimental/managed_set.hpp Outdated Show resolved Hide resolved
src/cpprealm/experimental/managed_set.hpp Outdated Show resolved Hide resolved
@leemaguire leemaguire merged commit ab2fc5f into main Oct 17, 2023
@leemaguire leemaguire deleted the lm/set-support branch October 17, 2023 08:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants