database - How-to Maintain DB Java Connection -


i have .db file in github (same level src folder) can commit/push rest of files. how make sure connection java code sqlite database stays valid once loaded onto user's system? can stick with

connection = drivermanager.getconnection("jdbc:sqlite:mydatabase.db");

or need rework path? sqlite creates new empty db if doesn't find 1 it's looking for, want make sure connects.

(i imagine best solution involve maven or ant, haven't learned how use yet.)

(edit bump.)


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -