菜鸟教程小白 发表于 2022-12-12 20:07:35

iphone - CDBStore 作为 iOS 中 CoreData 的持久存储


                                            <p><p>在这里
<a href="https://developer.apple.com/library/ios/#samplecode/CoreDataBooks/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008405-Intro-DontLinkElementID_2/" rel="noreferrer noopener nofollow">Apple&#39;s sample code</a>我发现了这种类型的持久化存储。</p>

<p>谁能告诉我什么是 CDBStore 和
与 sqlite、plist 等其他存储类型相比,使用 CDBStore 作为持久存储有什么优势?</p>

<p>在哪些情况下它不使用?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>CDBStore 是任意文件扩展名。实际上,它是一个 SQLite 数据库,当使用参数 <code>NSSQLiteStoreType</code> 读取它时,可以进一步证明它是几行。相对于 sqlite 的优势是没有的,相对于 plist 的优势是 sqlite 相对于 plist 的优势。 </p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - CDBStore 作为 iOS 中 CoreData 的持久存储,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/10100762/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/10100762/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - CDBStore 作为 iOS 中 CoreData 的持久存储