通过 JDBC 访问 Chrome 历史记录

发布于 2024-09-15 19:04:46 字数 220 浏览 13 评论 0原文

我正在尝试通过 java 应用程序连接到 chrome 历史数据库(sqlite)并以只读模式运行一些查询。我正在使用 sqlite.jar 但当我连接时,出现以下错误: org.tmatesoft.sqljet.core.SqlJetException: BUSY: 错误代码为 BUSY 我知道有些应用程序可以访问该文件,而无需先复制它(例如 wxSQLitePlus)或确保浏览器没有使用该文件,他们是如何做到的? 多谢

I'm trying to connect to the chrome history database (sqlite) via a java application and run some queries in read only mode. I'm using sqlite.jar but when I connect, I get the following error:
org.tmatesoft.sqljet.core.SqlJetException: BUSY: error code is BUSY
I know some applications can access the file without copying it first (like wxSQLitePlus) or making sure the browser is not using the file, how do they do it?
Thanks a lot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜声 2024-09-22 19:04:46

由于 Chrome 正在使用“历史”文件(假设当您收到 BUSY 错误时 Chrome 正在运行),Chrome 目前对该文件持有“独占”锁定。在此期间,任何其他应用程序都无法访问同一文件。即使对于只读进程也是如此。

Since the "history" file is being used by Chrome (assuming Chrome was running when you got the BUSY error), Chrome currently holds a "EXCLUSIVE" lock on the file. During this, no other application can access the same file. Even for read-only process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文