Hi We were attempting to use test_onefile.c based approach (http://www.sqlite.org/src/doc/trunk/src/test_onefile.c). This is for embedded where filesystem is not available. This code works and we can create, insert, select on the database created using this test_onefile.c.
However we want to save the db to flash and saw that we should be implementing below functions but didn't find any relevant information about it. ** mediaRead(); - Read a 512 byte block from the file. ** mediaWrite(); - Write a 512 byte block to the file. ** mediaSync(); - Tell the media hardware to sync. I have few questions about it. If you answer them it would be really valuable information for us. 1. Signature for these functions with meaning of the argument 2. After writing the above functions to behave as expected, how to integrate it with rest of the code? 3. As per our understanding we have to just write above 3 functions and we are done. Is this understanding correct? Thanks, Nitin DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.