加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-12 18:51:51 所属栏目:百科 来源:网络整理
导读:是否总是需要在adobe air应用程序中为用户创建数据库,还是可以将空数据库作为分布式应用程序的一部分发送? 解决方法 在Flex 3.0文档中查找“分发预先填充的数据库”部分.从文档: […]As an alternative to creating the database,structure,and data progr
是否总是需要在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?

是是的!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读