> 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.
This may be possible if you code your own O/S interface layer. See the following link:- http://www.sqlite.org/arch.html And look at the following source files that come with SQLite:- os_win.c os_unix.c We are using SQLite on an embedded device with the DB stored on Flash (ROM). However we use a 3rd party filing system libray to read and write files to it as if it were a disk. We had to write our own interface layer however to call the filing system library funcs, we called it os_flash.c. If you could write a os_nintendo.c (or whatever) file that would be able to perform the reads from ROM then it should work. In this way you would not use an in memory database but a normal file based database. DISCLAIMER: This information and any attachments contained in this email message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, forwarding, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email, and delete the original message immediately.