如何确保境界架构在Android和iOS是相同的? [英] How can I ensure Realm schema is identical across Android and iOS?

查看:224
本文介绍了如何确保境界架构在Android和iOS是相同的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待在使用领域的项目,我们同时拥有iOS和Android客户端。

I'm looking at using Realm for a project where we have both iOS and Android clients.

它看起来像有没有什么办法,以确保数据库模式是两个平台上是相同的,使得数据存储可以在它们之间进行交换。由于该模式在code有效地定义,我怎么能保证他们仍然兼容?

It looks like there's not any way to ensure that the database schemas are the same on both platforms, such that the data stores could be exchanged between them. Since the schema is effectively defined in code, how can I ensure they remain compatible?

推荐答案

境界的浏览器可以生成从现有的多国语言境界的文件模型。因此,也许你可以在一个平台上创建一个境界文件,然后使用浏览器来生成其它语言的对应?

The Realm browser can generate Models from existing Realm files in multiple languages. So maybe you could create a realm file on one platform and then use the browser to generate the counterpart for the other language?

这篇关于如何确保境界架构在Android和iOS是相同的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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