Chapter 3, Basic Key-value Operations Creating and Deleting Data, found that
Delete values by keys was all we needed, but some way of getting more than one value back at a time is generally very useful. If you don't know what data may be in your keys, then you need a way to search for partial matches or just start from the beginning of the database. This ability to search for and iterate through keys in sorted order is what completes LevelDB's ability to be the foundation of a database. The default sorting order is a
BytewiseComparator, effectively ASCII.
Sample04 uses the same
LevelDbHelpers.h as before. Please download the entire sample ...