0

I have created a SQLite database from Java. Now I want to know where it is stored physically on disk, so that I can push that file on to Android.

2 Answers 2

3

You specified a database name as part of the JDBC connection URL. Look for a file with that name on your harddisk. Example:

jdbc:sqlite:test.db

-> look for test.db

Sign up to request clarification or add additional context in comments.

Comments

1

SQLite usually produces one file with the extension .sqlite, but this is just convention, the extension can be anything.

As already was said, the code which opens the database spefifies the path where the file should be stored, so you have to look there.

1 Comment

Thank you. Since I am not providing any path, the database was created at the package's location. :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.