SQLite creates new database file on first attempt to connect if file did not exist already.
So, simply use jdbc:sqlite:filename.db
as JDBC connection string, and provided that you have permission to create filename.db
, it will be created automatically. You can also manually pre-create this file with 0
size if you want.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…