The Couchbase Lite Viewer lets you inspect the documents in Couchbase Lite databases. In this screencast, you’ll learn how to use it when developing an iOS or Android application. This tool is particularly useful to browse existing documents, insert new ones and display the soft deletions. We’ll consider a todo list application and explore the following:
- Install the Couchbase Lite Viewer
- iOS: Use the App Browser to open a particular Database
- iOS: Make modifications in the App and see results update in the Viewer
- Android: Locate and copy the
.cblite
file with ADB commands - Android: Open the
.cblite
file in the Viewer
Find the code for this lesson
For Android only
To navigate in the filesystem of the emulator or device:
1 |
$ adb shell |
Use the pull command with your application’s package name to copy them to the host filesystem:
1 |
$ adb pull /data/data/com.couchbase.todolite/files/ ~/files |