简体   繁体   中英

Prevent ATTACH DATABASE with SQLite Java

Hey I'm currently trying to create a minecraft mod in which individual blocks have access to individual databases. I thought I'd use SQLite.

However I absolutely need to stop ATTACH from working. I thought about verifying every SQL string but I don't exactly know how to do it properly and it also seems a bit ugly.

Does someone have any idea?

I finally found a solution. Just modify an existing Java SQLite Connector.

Here is the link to the pull request I made: https://github.com/xerial/sqlite-jdbc/pull/527#issue-462402792 .

It works now, and I'm happy with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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