Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Including a pre filled sqlite DB with the project
Started by ammar71 Nov 13 2019 01:50 PM

1 reply to this topic
sqlite

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ammar71

[GLOBAL: userInfoPane.html]
ammar71
  • Enthusiast

  • 77 posts
  • Corona SDK

Hello all,

 

I would like to add a pre filled DB with my project but I also want to be able to modify that DB from the app. Where do I put the DB? Do I just put it at the root level of the app? How do I access it? Can I use:

system.ResourceDirectory

or

system.DocumentsDirectory

?

 

 

 

Thanks.



[TOPIC: post.html]
#2

ammar71

[GLOBAL: userInfoPane.html]
ammar71
  • Enthusiast

  • 77 posts
  • Corona SDK

  Best Answer

Never mind. I found the answer here:

https://coronalabs.com/blog/2015/05/19/tutorial-initializing-a-writable-sqlite-database-from-a-read-only-database/




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: sqlite