realm / realm-cpp

Realm C++
Apache License 2.0
74 stars 17 forks source link

Add ability to open a synced realm without sync configuration. #234

Closed leemaguire closed 2 months ago

leemaguire commented 2 months ago

Add ability to open a synced realm without a flexible sync configuration.

auto local_config = realm::db_config();
local_config.set_path(path);
local_config.enable_forced_sync_history(); // allows a synced realm to be used with a local config.
adamski commented 2 months ago

@leemaguire I assume in order to move the local realm to be synced, one would need to explicitly set the path to be the same in both cases, rather than use the default path given when setting it up via an app and user?