How can I create a new DB with SQLite4Java? For example after trying to open connection to a DB that does not exist yet.
SQLiteConnection db = new SQLiteConnection(new File("DB.db"));
try {
db.open(true);
} catch (SQLiteException e) {
<<CREATE DB>>
}
asked Jul 20, 2013 at 21:01
Leonardo Marques
4,0117 gold badges40 silver badges53 bronze badges
1 Answer 1
If you pass true to the open() method, the database will be created if it doesn't exist.
Sign up to request clarification or add additional context in comments.
Comments
default