Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (中文) » UltraLite - C 及 C++ 编程 » 应用程序开发 » 开发用于 Windows Mobile 的 UltraLite 应用程序

 

存储持久数据

UltraLite 数据库存储在 Windows Mobile 文件系统中。缺省文件为 \UltraLiteDB\ul_store.udb。可以使用 file_name 连接参数指定基于文件的持久存储区的完整路径名,从而覆盖此选项。

UltraLite 运行库不对 file_name 参数进行替换。如果必须创建目录才能使文件名有效,那么应用程序必须确保在调用 db_init 之前创建所有目录。

例如,可以通过扫描存储卡并在名称前面加上与存储卡相对应的目录名的方式来利用闪存存储卡。例如,

file_name = "\\Storage Card\\My Documents\\flash.udb"