简体   繁体   English

是否可以像本地数据库一样在OneDrive(在云中)上使用sqlite数据库?

[英]Can I use an sqlite database on OneDrive (in the cloud) like a local database?

Actaully, I have an application that use an Sql Lite database in local. 实际上,我有一个在本地使用Sql Lite数据库的应用程序。 But I would like that all the users could use the same data base instead of each one has its own database. 但是我希望所有用户都可以使用相同的数据库,而不是每个用户都有自己的数据库。

So I am thinking in the possiblity to upldoad a database to the cloud, for example to OneDrive, and access to that like it would be a local database. 因此,我正在考虑将数据库上载到云(例如OneDrive)的可能性,并像访问本地数据库一样访问该数据库。

When I mean that like a local database, I mean that I want to avoid to download the data base, make changes and later upload the database again, because this is not a good option for concurrency access. 当我的意思是像本地数据库一样时,我的意思是我想避免下载数据库,进行更改并稍后再次上传数据库,因为这不是并行访问的好选择。

I would like that if I do an update, only change the data that I want to update, because also I want to avoid to download all the database and save data if I connect with a mobile connection. 我希望如果进行更新,请仅更改要更新的数据,因为如果要通过移动连接进行连接,也要避免下载所有数据库并保存数据。

I sumary, the only change that I would like to do to my application is add support to use the API needed to access to files stored in OneDrive and change the path of the database from my local database to the database stored in OneDrive. 总结一下,我要对应用程序进行的唯一更改是添加支持,以使用所需的API来访问存储在OneDrive中的文件,并将数据库的路径从本地数据库更改为存储在OneDrive中的数据库。

Thanks. 谢谢。

If you can map the OneDrive cloud disk as Network unit in Windows I think it is possible to work on it directly from an application just passing the correct path on the network drive ... 如果您可以将OneDrive云盘映射为Windows中的网络单元,我认为可以直接从应用程序中通过网络驱动器上的正确路径来对其进行处理...

I can't say if the performance achieved will be acceptable for you, but is definitely possible to work on it through a network drive . 我不能说所达到的性能是否可以接受,但是绝对可以通过网络驱动器进行操作。 Take a look at this blog post that will show you how to map OneDrive space as network drive . 看一下这篇博客文章,它将向您展示如何将OneDrive空间映射为网络驱动器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM