gpt4 book ai didi

sqlite - 我可以在 Air 应用程序中嵌入 sqlite 数据库吗?

转载 作者:行者123 更新时间:2023-12-02 14:29:35 25 4
gpt4 key购买 nike

是否始终需要在 adobe air 应用程序中为用户创建数据库,或者您可以将空数据库作为分布式应用程序的一部分提供吗?

最佳答案

查找 Flex 3.0 文档中的“分发预填充数据库”部分。来自文档:

[...]As an alternative to creating the database, structure, and data programmatically, you can distribute a pre-populated database with your application. To distribute a predefined database, include the database file in the application's AIR package.

Like all files that are included in an AIR package, a bundled database file is installed in the application directory (the directory represented by the File.applicationDirectory property). However, files in that directory are read-only. Use the file from the AIR package as a "template" database. The first time a user runs the application, copy the original database file into the user's application storage directory (or another location), and use that database within the application.

那么,你的问题的答案:

can you ship an empty database as part of the distributed app?

是的!

关于sqlite - 我可以在 Air 应用程序中嵌入 sqlite 数据库吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/573350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com