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
Post a Comment