首页 > android > IBM Worklight从SQLite到MySQL检索数据

IBM Worklight从SQLite到MySQL检索数据 (IBM Worklight retrieving data from SQLite to MySQL)

问题

我正在开发一个Worklight Android原生应用。我有一个本地数据库 - 用于存储一些数据的SQLite,我想将数据传输到服务器端的MySQL数据库。我正在使用Worklight SQL Adapter与MySQL进行通信,但只要我知道适配器不可用于检索本地数据。如何从本地数据库转移到远程数据库?提前致谢

解决方法

您无法使用适配器访问本地数据库。但是您可以使用本机方式获取数据并将其发送到SQL适配器以将其保存在MySQL数据库中。

有关更多信息

AFAIK无法将数据从SQLite发送到后端数据库。你可以做上面的解决方法。

问题

I am developing a Worklight Android native app. I have a local database - SQLite to store some data and I want to transfer the data to server-side MySQL database. I am using Worklight SQL Adapter for communication with MySQL but as long as I know the adapter is not usable for retrieving local data. How can I make the transfer from the local database to the remote one? Thanks in advance

解决方法

You cant use adapters for accessing local DB. however you can fetch the data using native way and send the same to SQL adapter to save it in MySQL database.

For more info

AFAIK there is no way to send data's from SQLite to backend DB. you can do the above workaround.

相似信息