I have a large database that I want to open in read-only mode... I\'m using SQLiteJDBC and am not sure what to use to get it to work as read-only.
Can anyone help?>
I came across your post and this is what helped me: I made a connection similar to the one listed here http://www.shoaibinamdar.in/blog/?p=313 but insread of
ds.setUrl("jdbc:sqlite::resource:"+
getClass().getResource("sample.db").toString());
I put
ds.setUrl("jdbc:sqlite:resource/sample.db");
the sample.db went in /myprojectname/resource/sample.db, with resource being in the same dir (myprojectname) as /myprojectname/src/
Hope this helps someone