If you have to do this on an mbed and don't need the future flexibility of a generalized RDMS, why not do something like this:
- Store all the "2D Arrays" on the SD card.
- Open the source and comparator files
- Set boolean variable equal=1
- . Repeat for each row:
- Load a row from the source file into memory
- Load a row from the comparator file into memory
- Check the rows for equivalence
- If equivalent: continue
- If not equivalent, set equal=0 break
- If equal=1, you found a match, else repeat for next comparator file
So you don't really need a DB.
And in the above, you don't need to load a whole row. You could do this using only two tiny buffers if you really want. Or you can use giant buffers.
Even if you could get something like sqlite to work, it's unlikely to be any quicker than this since it won't be able to load everything into RAM, and it will basically be doing the same thing.
Ashley
Hi,
For an Project I need a database directly on the mbed (SDCard). My first thought was that I try it with SQLite but I didn't find anything in the forum and cookbook over sqlite.
Has anyone experience with SQLite and Mbed or has anyone a other solution for my problem?
tia djonny