ahochan uttered:


I'm building a dictionary application that will run on Nintendo DS and PSP.
I'm considering using sqlite to store the database which will will be
read-only, and embedded on rom.

Is it possible to get sqlite to read the database directly from such a
pre-allocated memory area? Usage examples I've seen using :memory: all seem
to create and populate the database on the fly. In this case, the database
will already have been created.


Not sure how NDS or PSP access ROM (isn't the PSP disc based only anyway?) but you could write a file abstraction on top of the ROM address range, and write an os_ninds.c file to acccess the ROM image. Check out the os_* source files in SQLite. Your job should be eased by not requiring any locking code.

It would be difficult to use a ROM :memory: database without being very familiar with the SQLite internals.

Christian


--
    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
     X                           - AGAINST MS ATTACHMENTS
    / \

Reply via email to