开发者

Access Chrome History through JDBC

开发者 https://www.devze.com 2023-01-12 22:46 出处:网络
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:

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.sqlj开发者_如何学运维et.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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消