Getting Started with LevelDB.
Material type:
Cover -- Copyright -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Downloading LevelDB and Building with OS X -- Installing LevelDB -- Building the LevelDB libraries -- Installing snappy -- Removing snappy -- Moving to Xcode -- Summary -- Chapter 2: Installing LevelDB and Building for iOS -- Building the static LevelDB library for iOS -- Creating a minimal iOS Testbed -- Adding LevelDB to the iOS Testbed -- Summary -- Chapter 3: 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 -- Chapter 4: Iteration and Searching Keys -- Introducing Sample04 to show you loops and searches -- Creating test records with a loop -- Stepping through all the records with iterators -- Searching for ranges of keys -- Linking records in a simple relational style -- Summary -- Chapter 5: 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 -- Chapter 6: 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 -- Chapter 7: Debugging with REPLs and Command Lines -- Building and running the LevelDB dump utility -- Installing Node.js and the lev utility -- Adding a REPL for debugging inside your iOS app -- Summary -- Chapter 8: 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 -- Key design for LevelDB versus relational theory and SQL -- Deciding when to store one record or split values -- Implementing schemas for LevelDB -- Dealing with integer key endianness -- Using comparators to vary key ordering -- Summary -- Chapter 9: A Document Database -- Key design for searching the document database -- Defining the schema using APLevelDBSS -- Database fields for tracking documents -- Databases as documents via packages -- Summary -- Chapter 10: Tuning and Key Policies -- Understanding the Level in LevelDB -- Understanding that deleting is another form of write -- Understanding how reads work from the top down -- Understanding how snapshots make reading predictable -- Understanding how Bloom filters help guesses -- Tuning using Bloom filters or alternatives -- Using settings that affect performance -- Tuning and structuring data by scenario -- Choosing to structure data according to update rate -- Caching choices for key performance based on expected access -- Using multiple databases depending on role -- Reconsidering policies for generating keys -- Summary -- Appendix: Scripting Languages -- Using LevelDB from Node.js -- Using LevelDB from Python -- Using LevelDB from Ruby -- Summary -- Index.
The book is a concise guide for using LevelDB. It explains database concepts and the use of C++, ranging from the basics all the way to high level topics in an easy to follow, step-by-step format.The book is meant for developers who want an embedded database for their applications. Experienced programmers can pick up on the sophisticated data mapping patterns and tuning tips.Getting Started with LevelDB requires a minimal background in programming in C++ or Objective-C for OS/X or iOS and familiarity with XCode. Therefore it teaches enough C++ to use LevelDB without presuming any C++ knowledge, so is suitable for beginner Objective-C programmers.
Description based on publisher supplied metadata and other sources.
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2018. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
There are no comments on this title.