I'm writing a bit of C code and find that more than anything, I need a table data structure.
Pretty much just like a SQL table: I have this key, I want this column, give me the value. Not multi-row (i.e., only one row matching a key) but not simple key/value either - for each key, I have many columns.
Is a hash with a key that returns a struct the best way to accomplish this? For cases where there's a very small number of values, I've just been using a linked lists of structs (i.e., walking a list of 10 values is so fast that a hash is probably a waste of time). But for bigger tables, is a hash the way to go?
Of course, this doesn't help if the columns are dynamic :-)
I'm aware of sqlite which I might also use.