realm-cpp icon indicating copy to clipboard operation
realm-cpp copied to clipboard

`realm::open` creates a Realm file with a `.realm.realm` extension

Open ahmdmhd opened this issue 2 years ago • 2 comments

When opening a Realm using realm::open, the locally-created Realm file ends with .realm.realm. However, opening a Realm using realm::async_open creates a Realm file with .realm extension. This can cause two Realm files to be created when using both methods to open a Realm in the app.

ahmdmhd avatar Dec 22 '22 17:12 ahmdmhd

+1 realm::open has its own suffix inside check here. so i use realm::open<...>({.path = "name_without_suffix"}) to fix it.

laucenmi avatar Dec 23 '22 03:12 laucenmi

Fixed by: https://github.com/realm/realm-cpp/pull/20

leemaguire avatar Jan 03 '23 16:01 leemaguire