Realm如何将现有用户数据添加到移动平台? [英] How do Realm add existing user data to the mobile platform?

查看:109
本文介绍了Realm如何将现有用户数据添加到移动平台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将Realm用作iOS应用程序中的脱机数据库.
如果要添加对Realm移动平台的支持,它将自动获取所有Realm用户数据并将其迁移到云中吗?
还是
是否需要一些代码才能将数据移动到云中?

I am currently using Realm as an offline database in the iOS app.
if I were to add support for Realm mobile platform, will it automatically grab all the Realm user data and migrate it to the cloud?
Or
is there some code that is needed to move the data to the cloud?

推荐答案

Realm Mobile Platform不是云服务,而是由Realm Object Server组成,Realm Object Server是可以自己运行(支持各种Linux版本)和Realm的服务器应用程序移动数据库.如果您今天已在应用程序中使用Realm Mobile Database,则不能仅仅升级并期望这些Realms与Realm Object服务器同步.相反,您需要通过新的API创建同步的领域,并将数据从现有的领域复制到同步的领域.

Realm Mobile Platform is not a cloud service but consists of Realm Object Server, a server application you can run on your own (supports various flavors of Linux) and Realm Mobile Database. If you are already using Realm Mobile Database in your app today, you cannot just upgrade and expect those Realms to sync with Realm Object server. Instead you much create synchronized Realms through the new API and copy data from the existing Realm into the synchronized Realm.

这篇关于Realm如何将现有用户数据添加到移动平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆