This question already has an answer here:
I am writing a offline iPhone app in which I need to read and display from a database which consists of a few number of tables. The tables have over 100k entries in it, so it is almost impossible to enter it all individually. I have downloaded the .sql
file of the entire db. Now how can I import the db as such into sqlite/Xcode so that I can readily start accessing the data in it??
Edit: I have seen that when using a database, the file extension that is used is a .db
file. Is there anyway I can convert the .sql
file to a .db
file. And if I can do that, can I simply access the .db
file by placing it in the project directory?