sqlite database Issue

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

sqlite database Issue

Post by FireWorx » Sat Dec 10, 2011 11:51 pm

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

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: sqlite database Issue

Post by Jellicle » Sun Dec 11, 2011 12:34 am

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?
Yes.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: sqlite database Issue

Post by Dixie » Sun Dec 11, 2011 12:35 am

Dave...

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
be well

Dixie

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: sqlite database Issue

Post by FireWorx » Sun Dec 11, 2011 9:51 pm

Thank you. I will give it another try.
Dave

Informatie
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 37
Joined: Fri Sep 09, 2011 10:04 am
Location: Netherlands

Re: sqlite database Issue

Post by Informatie » Fri Dec 16, 2011 11:43 am


Post Reply

Return to “iOS Deployment”