Test demonstrate how to set connection to be read-only:
SQLiteConfig config = new SQLiteConfig();
config.setReadOnly(true);
Connection conn = DriverManager.getConnection("jdbc:sqlite:sample.db",
config.toProperties());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…