如何从一个平台(iOS)到另一个平台(Windows)使用SQLite数据库 [英] How to use SQLite database from one platform(iOS) to another(Windows)

查看:99
本文介绍了如何从一个平台(iOS)到另一个平台(Windows)使用SQLite数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道它是否是一个有效的问题. 我正在一个MFC/C ++应用程序上工作,

I don't know its a valid question or not. I am working on one MFC/C++ application where

我想在Windows应用程序中使用iOS应用程序中的SQLite数据库.

I want to use SQLite database from iOS application in my windows application.

我的iOS数据库是使用命令sqlite_key加密的.

My iOS database is encrypted using command sqlite_key.

虽然我正在为同一个数据库的Windows应用程序尝试此操作 它将对数据库上的任何操作引发异常.

While I am trying it for my windows application for the same database It throws an exception for any operation on the database.

在Google上进行搜索时,我无法对此进行正确跟踪.

While Searching on Google I am not able to get right track for this.

谁能告诉我这是可能的吗?

Can anyone tell me is it possible?

如果可以,请帮助我.

推荐答案

如果您的计划是导出"它,即您想重用ios应用程序插入到Windows中的数据,则只需找到在您的iPhone上,将sqlite数据库文件(sqlite将所有内容存储在一个位置)并复制到您的计算机上,然后告诉Windows软件该文件的位置.

If your plan is to "export" it, i.e you want to reuse the data inserted by your ios application into your windows one, then you simply need to locate on your iphone the sqlite database file (sqlite store everything in one single location) and copy it on your computer, and tell your windows software the location of this file.

如果您要共享"数据库,即两者都应能够实时"修改数据库,那么您将不得不自己滚动一些东西,因为Sqlite3不提供任何网络支持,它只是一个库以SQL方式读取和写入文件中的数据.

If your is to "share" the database, i.e both should be able to modify it in "realtime", then you will have to roll something on your own, as Sqlite3 does not provide any network support, it's just a library to read and write data in a file, in a SQL way.

这篇关于如何从一个平台(iOS)到另一个平台(Windows)使用SQLite数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆