Hi Hesky, The typical "key value" store is simply a hash table. How much stuff are you trying to store? Will it fit in memory?
Perhaps the simplest key/value store was originally created on BSD called the 'db' library, it implemented b-trees on disk and provides a simple look schema for given key get back value (up to a compiled in limit). The original code is pretty clean C code (granted it is C89 code but still) which you could probably get to compile, but there are no file system abstractions in libopencm3. If you're compiling with ARM supplied toolchain they do link in newlib which has the POSIX entry points for file manipulation, you have to then fake the underlying file system (not as hard as it sounds if you are only doing it for one application) --Chuck On Sat, Mar 29, 2014 at 2:55 PM, Hesky Fisher <[email protected]>wrote: > I need a key/value store for my project. I thought that there might be > some database available that I could use. I don't need anything as complex > as SQL but I would like the store to be resilient to power loss during > operations. > > Does anybody have experience with any databases in a libopencm3 > environment? > > > ------------------------------------------------------------------------------ > > _______________________________________________ > libopencm3-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libopencm3-devel > >
------------------------------------------------------------------------------
_______________________________________________ libopencm3-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
