Tizen可穿戴式本机应用程序:我们如何转储SQLite数据库?

问题描述 投票:0回答:2

我正在实现Tizen可穿戴混合应用程序(Web UI +本机服务)。本机服务使用SQLite Database进行记录维护。 我需要以csv格式导出数据库的SQLite转储文件以与Web UI共享。不幸的是,我在Web搜索中找不到任何内容。有人请引导我如何在Tizen可穿戴本机应用程序中从SQLite创建转储文件?

sqlite tizen tizen-native-app
2个回答
0
投票
1) Copy db files to res https://developer.tizen.org/ko/forums/native-application-development/how-copy-sqlite-data.db-file-application-runtime?langredirect=1#comment-25969 2) Converting db files to csv file https://www.tutlane.com/tutorial/sqlite/sqlite-export-data-from-table-to-csv-file

方法2.对读取的数据进行编码,然后将其直接写入csv文件Exporting the sqlite3 table into file using "C" execute API

© www.soinside.com 2019 - 2024. All rights reserved.