Has anyone else out there been able to populate a sqlite database table then copy it to the engine folder and then move it to the documents folder and have it retain it's data? Seems like perhaps you have to build your schema and populate your data into the database once it exists in the documents folder and not before.
I was trying to move some data from an excel worksheet into the db with a database management tool first and then once the data was in the db move it to the iPad.
Dave
sqlite database Issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: sqlite database Issue
Yes.FireWorx wrote:Has anyone else out there been able to populate a sqlite database table then copy it to the engine folder and then move it to the documents folder and have it retain it's data?
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: sqlite database Issue
Dave...
This works for me, I use it in a preOpenStack handler...
be well
Dixie
This works for me, I use it in a preOpenStack handler...
Code: Select all
put specialFolderPath("documents") & "/localKnow.db" into dataBaseFilePath
if there is not a file documentFilePath then
put specialFolderPath("engine") & "/localKnow.db" into engineFilePath
put URL ("binfile:" & engineFilePath) into URL ("binfile:" & dataBaseFilePath)
end if
Dixie
Re: sqlite database Issue
Thank you. I will give it another try.
Dave
Dave
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Fri Sep 09, 2011 10:04 am
- Location: Netherlands