no there is no unified API, the api that does exist is read-only and
quite slow (pdb and prc formats are not too good for resource/record
writing). If you really want, you can make a function to write a
record/resource to a VFS file. but it will likely get very slow very
fast as the number of records/resources grows. OR [the better option]
consider using some OTHER format on the card, that would be friendlier
for what you're doing.

On 5/28/06, Roger <[EMAIL PROTECTED]> wrote:
Hi all,

Where can I find some guidelines/best practices on converting an application 
that uses databases in main memory to an application that uses databases on SD 
cards?

I have an existing application that uses several databases and heavily uses the 
DmXXX api.  My application both reads and writes to database records, and also 
has a conduit that reads/writes to the databases.

The databases can get quite large (depending on what the user does) so I am 
looking into how I could support placing them on an external SD card.

After reading the VFS section of the Palm OS Companion PDF, I see functions to copy 
databases to and from SD cards.  The "working with palm databases" section also 
describes the VFSFileDBGetRecord() function to read records from database copied to the 
SD card, but explicitly says there is no way to write records.

Does a unified api exist for reading and writing records to a palm database, 
regardless of whether it exists in main memory or an SD card?

My question is very similar to the one posted in:

   http://news.palmos.com/read/messages?id=201649#201649

however there is no answer provided there.

Thanks,
Roger

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/



--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: hacker19180
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to