将数据导入到域数据库 [英] Import Data to Realm Database

查看:167
本文介绍了将数据导入到域数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用一个集中式数据库,并查看各种选项。从我的理解,我有三个主要选项:SQLite,Realm和CoreData。这些选项对于所有用户的大型集中式数据库都很好。

I want to use a centralized database and am looking at various options to do so. From my understanding, I have three main options: SQLite, Realm, and CoreData. Are these options fine for a large centralized database for all users.

此外,我试图将JSON和CSV中的数据导入Realm数据库。 Realm有这个功能吗?

Additionally, I am trying to import data from JSON and CSV into a Realm database. Does Realm have this functionality?

推荐答案

现在Realm似乎没有你需要的导入功能。有关详情,请查看此主题

As for now Realm does not seem to have the import functionality that you need. Check this thread for more information.

Realm有一个伟大的文档,您可以在 Realm 阅读,SQLite有这个框架(有肯定更多的在那里),他们都支持Swift 2.x.

Realm does have a great documentation that you can read at Realm and for SQLite there is this framework (there are for sure more out there) and they both support Swift 2.x. You have to check what suits your requests most.

我也建议您阅读数据库线程在reddit。

I can also recommend you to read this database thread at reddit.

这篇关于将数据导入到域数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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