从Core Data存储创建.sqlite文件? [英] Creating .sqlite file from Core Data store?

查看:148
本文介绍了从Core Data存储创建.sqlite文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在书籍和网站上看到提供.sqlite文件供下载的教程。 sqlite文件用于Core Data。

I've seen tutorials in books and on websites that offer .sqlite files for download. The sqlite files are used for Core Data.

如何在 我的桌面上从应用程式或核心资料储存库取得.sqlite档案 / p>

How do I get a .sqlite file FROM an app or core data store on TO my desktop?

推荐答案

如果要创建一个预先填充的sqlite文件用于Core Data, strong>使用Core Data创建它。创建用于数据输入的基本桌面应用程序并使用该应用程序创建该文件,然后将其嵌入到您的iOS设备中非常简单。

If you are going to create a pre-populated sqlite file to be used with Core Data then you must create it with Core Data. It is trivial to create a basic desktop application for data entry and use that to create the file and then embed it in your iOS device.

不要尝试复制数据结构或链接在文件中手动。你可能会得到它的工作,但你会花更多的时间,试图让它工作,它最终会失败。 Core Data sqlite文件的内部结构应该被视为私有API。结构不是公开的,可以更改,恕不另行通知。

Do not attempt to duplicate the data structure or linkage within the file by hand. You might get it to work but you will spend way more time trying to get it to work and it is going to eventually fail. The internal structure of a Core Data sqlite file should be considered like a private API. The structure is not public and can change without notice.

这篇关于从Core Data存储创建.sqlite文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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