由不同机器上的应用程序访问时的SQLite同步 [英] SQLite synchronization when accessed by applications on different machines

查看:100
本文介绍了由不同机器上的应用程序访问时的SQLite同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道SQLite如何实现它.它基于文件锁定吗?当然,并不是每个访问数据库的用户都锁定了整个数据库;那将是极其低效的.它是基于多个文件还是仅基于一个大文件?

I'm wondering how SQLite implements it. Is it based on file-locking? Surely the entire DB isn't locked for every user that accesses it; that would be extremely inefficient. Is it based on multiple files or just one big file?

如果有人可以简要介绍一下如何在sqlite中完成同步和锁定,或者当然要提供指向该链接的链接,那将是很好的选择.

Would be nice if someone could give a short overview of how synchronization and locking is done in sqlite, or, of course, provide a link to one.

推荐答案

看看 SQL Lite常见问题解答有关锁定的信息.希望对您有所帮助.

Have a look at the SQL Lite FAQ and this on locking. Hope this helps.

这篇关于由不同机器上的应用程序访问时的SQLite同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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