PacktLib: Getting Started with LevelDB

Getting Started with LevelDB

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Downloading LevelDB and Building with OS X

Installing LevelDB

Moving to Xcode

Summary

Installing LevelDB and Building for iOS

Building the static LevelDB library for iOS

Summary

Basic Key-value Operations – Creating and Deleting Data

Understanding C++ idioms in LevelDbHelper.h

Using Get and Put for strings

Understanding Slice – the efficient LevelDB parameter object

Using Get and Put with binary values

Using Delete – the final third of key-value operations

Wrapping operations in WriteBatch for increased safety

Summary

Iteration and Searching Keys

Introducing Sample04 to show you loops and searches

Summary

Using Objective-C

Open source wrappers for LevelDB in Objective-C

Using Objective-C for simple data access

Extending APLevelDB to expose the C++ API

Importing text data to load a database

Summary

Integrating with a Cocoa UI

Meeting the data source needs with LevelDB

Creating the OS X GUI

Connecting the database to the NSTableView

Connecting record details to the editing form

Recommended Xcode books

Summary

Debugging with REPLs and Command Lines

Building and running the LevelDB dump utility

Installing Node.js and the lev utility

Summary

Richer Keys and Data Structures

Completing the data source for a rich GUI

Extending the OS X GUI to fully support editing

Connecting the database to the NSTableView

Connecting record details to the editing form

Saving data with key updates

Responding to the new and delete commands

Deciding when to store one record or split values

Implementing schemas for LevelDB

Dealing with integer key endianness

Summary

A Document Database

Key design for searching the document database

Database fields for tracking documents

Databases as documents via packages

Summary

Tuning and Key Policies

Understanding the Level in LevelDB

Understanding how Bloom filters help guesses

Using settings that affect performance

Tuning and structuring data by scenario

Summary

Scripting Languages

Scripting Languages

Scripting Languages

Scripting Languages

Scripting Languages

Index