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

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -