In-memory representations are fairly easy; uthash is fairly ubiquitous: 
http://troydhanson.github.io/uthash/

As you say, serialisation is a whole ‘nother story.

On 29 Mar 2014, at 4:16 pm, Jason Kotzin <jasonkot...@gmail.com> wrote:

> There is a great kvp I’ve used in this project on github:
> 
> https://github.com/joeldevahl/minion/tree/master/src
> 
> hash.c & hash.h
> 
> It uses malloc, however, I’m sure you can use it as a starting point for your 
> own.
> 
> Writing and retrieving this from memory is a different topic.
> 
> — Jason
> 
> On Mar 29, 2014, at 3:54 PM, Fergus Noble <fergusno...@gmail.com> wrote:
> 
>> I don't have any experience with databases but we are using coffeeFS as a 
>> file system on top of the stm32 flash memory. It performs wair levelling 
>> which is nice and could be a backend for a generic database library.
>> 
>> https://github.com/fnoble/piksi_firmware/tree/master/src/cfs
>> https://github.com/contiki-os/contiki/wiki/File-systems
>> 
>> We are going to be using minini on top if this for storing key/value 
>> settings but its not really optimised for speed or use as a database.
>> 
>> Fergus
>> 
>> Sent from my iPhone
>> 
>> On 29 Mar 2014, at 15:50, Michael Smith <drzip...@gmail.com> wrote:
>> 
>>> 
>>> No, but I think that many of us would be interested if you find anything. 
>>> 
>>> On 29 Mar 2014, at 2:55 pm, Hesky Fisher <hesky.fis...@gmail.com> 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
>>>> libopencm3-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> libopencm3-devel mailing list
>>> libopencm3-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> libopencm3-devel mailing list
>> libopencm3-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
> 

------------------------------------------------------------------------------
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to