simplest key-value database
by lvm_ from LinuxQuestions.org on (#5MQCQ)
Is there a simple key-value database for use in scripts and such? No authentication, no schema, no nothing - just
name <file.db> [get|put] <key>
and in reads/prints value to stdin. Yes, there are hundreds of ways, it can even be done using nothing but grep, but I have a strong aversion to reinventing the wheel and wouldn't mind a decent performance so before I do it using sqlite (which is not key-value at all but happens to be installed) I decided to ask if there is a ready-made solution.
name <file.db> [get|put] <key>
and in reads/prints value to stdin. Yes, there are hundreds of ways, it can even be done using nothing but grep, but I have a strong aversion to reinventing the wheel and wouldn't mind a decent performance so before I do it using sqlite (which is not key-value at all but happens to be installed) I decided to ask if there is a ready-made solution.