且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我们可以直接访问核心数据的SQLite数据库吗

更新时间:2023-12-02 23:49:04


我们可以直接访问数据库吗?

Can we directly access the data base which has created by core data using our own queries?

是。


有可能吗?

is it possible ?

是。

如果是,苹果会批准该应用程序吗?

if so, will apple approve the app ?

是。


是否违反苹果指南?

is it against the apple guidelines ?

否。

不幸的是,您不是 问题是最重要的:

Unfortunately, the question you're not asking is the most important:


我们应该直接访问Core Data的SQLite数据库

should we directly access the SQLite database of Core Data

否。

格式不是公开的,可以更改。您不知道何时访问它,或者在Core Data背后弄乱它可能导致什么问题。

The format is not public and could change. You don't know when it is accessed or what problems could be caused by messing around with it behind Core Data's back.