Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between .db and .sqlite file

Tags:

sqlite

Through the SQLite database manager I am able to generate a .sqlite file.

And through Java code I am able to generate a .db file (database file) in SQLite database.

What is difference between the two files?

like image 733
Ashutosh Avatar asked Oct 21 '25 18:10

Ashutosh


1 Answers

Absolutely none. SQLite does not care the least what extension the file uses. It checks whether what it was given is indeed a SQLite3 database by inspecting the magic number and the header.

It's purely up to you whether you use the suffix .db, .sqlite, .dat, .mydata, .foo or whatever... or no extension at all; that is also permitted. There is no standard and the documentation does not seem to make any particular suggestion either, so everybody uses something else.

Also, if you are using SQLite as a storage backend for your application, it actually makes sense to use extension specific to your application. Because it is not just any random SQLite database, it is SQLite database with specific schema storing particular kind of data.

like image 146
Jan Hudec Avatar answered Oct 23 '25 09:10

Jan Hudec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!