Releases · realm/realm-cpp
v2.2.0 Fixed==
operator in a type safe query for a nullable string property would return the incorrect result when algined storage was disabled.managed<std::map<std::string, T>>
in type safe queries when comparing a value for a key. e.g.realm.object<MyObject>().where([](auto& o) { return o.my_map["foo_key"] == "some value"; })
==
, !=
, >
, <
, >=
, <=
and contains(const std::string&)
.managed<std::map<std::string, T>>::contains_key
for conveniently checking if a managed mapmanaged<std::map<std::string, T>>::find
.realm::networking
namespace which contains interfaces for providing your own custom network transportwebsocket_interface
websocket_observer
sync_socket_provider
sync_socket_provider::timer
http_transport_client
default_http_transport
for built-in HTTP transport.default_socket_provider
a built-in class for providing the components necessary for transport via WebSocket.realm::app::App::configuration.http_transport_client
& realm::app::App::configuration.sync_socket_provider
.realm::networking::default_http_transport::configuration
struct.realm::networking::default_socket_provider::configuration
struct.realm::app::App::configuration
.std::apply
.realm::default_scheduler::set_default_factory(std::function<std::shared_ptr<realm::scheduler>()>&& factory_fn)
for generating a default scheduler.realm::db_config
.realm::default_scheduler::make_default()
which generates a platform default scheduler if realm::default_scheduler::set_default_factory
is not set.managed<T>::to_json(std::ostream&)
which allows managed objects to be printed as json.rbool::truepredicate()
and rbool::falsepredicate()
expressions for type safe queries.-DREALM_DISABLE_ALIGNED_STORAGE=1
to disable.sync_manager::path_for_realm(const realm::sync_config&)
is now App::path_for_realm(const realm::sync_config&)
-DREALM_ENABLE_EXPERIMENTAL=1
to your CMake command when generating the build to enable this feature.util::UniqueFunction
inside of std::function
.https://services.cloud.mongodb.com
to support the new domains (was https://realm.mongodb.com
)std::vector
& std::map
.realm::holds_alternative
which acts as a substitute to std::holds_alternative
when using managed<realm::mixed>
.managed<realm::mixed>::get_stored_link
for retrieving a link from a mixed proeprty type.managed<realm::mixed>::set_link
for setting a link in a mixed proeprty type.managed<std::vector<>>::as_results()
to allow the ability to derive a realm::results<>
collection from a managed vector.realm::uuid
to be constructed with std::array<uint8_t, 16>
.cpprealm
with the Conan package manager.cpprealm
with the vcpkg package manager.user::call_function
and user::get_custom_data
API's.user::get_custom_data()
and deprecate user::custom_data()
.results<>
the notifications would not fire after the results<>
instance left the scope.realm::sync_session::pause()
realm::sync_session::resume()
realm::sync_session::reconnect()
realm::sync_session::state()
realm::sync_session::connection_state()
realm::sync_session::observe_connection_change(std::function<void(enum connection_state old_state, enum connection_state new_state)>&& callback)
realm::sync_session::unregister_connection_change_observer(uint64_t token)
realm::client_reset::manual()
realm::client_reset::discard_unsynced_changes(std::function<void(experimental::db local)> before, std::function<void(experimental::db local, experimental::db remote)> after)
realm::client_reset::recover_unsynced_changes(std::function<void(experimental::db local)> before, std::function<void(experimental::db local, experimental::db remote)> after)
realm::client_reset::recover_or_discard_unsynced_changes(std::function<void(experimental::db local)> before, std::function<void(experimental::db local, experimental::db remote)> after)
realm::db::close()
for closing an open Realm.realm::db::is_closed()
for checking if a Realm is closed.realm::db_config::should_compact_on_launch(std::function<bool(uint64_t total_bytes, uint64_t unused_bytes)>&&)
.experimental
namespace has been removed and all types under it have been elevated to the realm
namespace.managed<T>::thaw()
.managed<T>::get_realm()
.realm::App::credentials::google(auth_code)
has been renamed to realm::App::credentials::google_auth_code(const std::string&)
realm::App::credentials::google(id_token)
has been renamed to realm::App::credentials::google_id_token(const std::string&)
BSON
have been replaced with std::string
realm::App::credentails::function(const std::string&)
realm::App::user::call_function(const std::string&)
realm::App::user::custom_user_data()
freeze()
method on the instance.thaw()
.experimental::results
/ managed<std::vector<T>>
.realm::proxy_config proxy_config; proxy_config.type = realm::proxy_config_type::HTTP; proxy_config.port = 8080; proxy_config.address = "127.0.0.1"; proxy_config.username_password = {"username", "password"}; realm::App::configuration app_config; app_config.proxy_configuration = proxy_config; auto app = realm::App(app_config); auto user = app.get_current_user(); auto sync_config = user->flexible_sync_configuration(); sync_config.set_proxy_config(proxy_config); auto synced_realm = experimental::db(sync_config);Compatibility
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4