sqlite - sqlite db 文件在任何平台下都可用吗?

标签 sqlite windows-phone-7

例如,我可以生成一个SQLite db文件并将其作为资源放在项目中吗?项目首次启动时,将数据库复制到隔离存储中,而不必担心此数据库文件在手机中可能不可用。此外,我可以将此空db文件复制到另一个平台,如android或iPhone,并在该平台的SQLite api中操作此db。

最佳答案

来自 SQLite web site:

A database in SQLite is a single disk file. Furthermore, the file format is cross-platform. A database that is created on one machine can be copied and used on a different machine with a different architecture. SQLite databases are portable across 32-bit and 64-bit machines and between big-endian and little-endian architectures.



所以是的,当您验证 SQLite API 在您想要使用的任何地方都可用时,作为一种存储格式应该没问题。

编辑:是的,SQLite does work on Windows Phone 7 , 使用 this Codeplex projectthis one .

关于sqlite - sqlite db 文件在任何平台下都可用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5740885/

相关文章:

jquery - 在 Windows Phone 上通过 PhoneGap 使用 jQuery .find()

java - 填充 TableLayout 时 Android Java NullPointerException

database - 在 Satchmo/Django 项目上使用 Git 的正确方法

php - PDO Sqlite 一般错误 : 25 bind or column index out of range

c# - SQLite 异常 : file is encrypted or is not a database

Android 标签更换器到 tab3 但内容与 tab1 相同

c# - 安装应用更新后,应用会丢失所有设置

c# - 执行异步 Web 请求时出现问题

windows-phone-7 - 可以手动部署到 Windows Phone 的最大应用程序数量

c# - 在 Wp7 中访问相机,带缩放