Backup and restore sqlite from disk to memory in Java

后端 未结 2 1248
孤独总比滥情好
孤独总比滥情好 2020-12-31 15:18

I\'m trying to read a sqlite-File into memory for better performance, when closing my application I want to write it back to hdd.

I\'m using the jdbc (3.7.2

2条回答
  •  死守一世寂寞
    2020-12-31 15:53

    The quotes and stat.close() don't matter, according to the link: `https://bitbucket.org/xerial/sqlite-jdbc/wiki/Usage', which I have tested. Quotes help when file path contains spaces, though.

    I think it maybe due to the jdbc driver. Try Xerial's JDBC driver for SQLite, which works fine for me.

提交回复
热议问题