I am using Couchbase lite ios 2.0.
After I delete a document by id, I don’t see the document when I try to query the same document in code. However, when I open db.sqlite3 file in computer, I still see the document. Is this normal, or I have done anything wrong?
This is normal. A deleted document still exists as a “tombstone”, so that the deletion can be replicated to other databases.
Looking at the internal SQLite database isn’t likely to be useful unless you know a lot about the implementation of CBL. If you just want to inspect databases, use the cblite command line tool that comes with the Mac & iOS release.
I had the same question, so thanks. Is there any documentation about the clean up process? I am working on a POC using using Couchbase Lite as a local caching layer for CloudKit. I am not using replications so those deleted items are just wasting space.
Hi i am trying to find details about the mobile data in cblite 2 using cblite command tools , which comes through couchbase-lite-swift_enterprise_2.1.1 folder , but i am unable to run the tools , as it says comand not found or
shobhakar-mac$ ./cblite
cblite: Couchbase Lite / LiteCore database multi-tool
Missing subcommand or database path.
For a list of subcommands, run cblite help .
To start the interactive mode, run cblite DBPATH
shobhakar-mac$ cblite /downloads/cblite2db
-bash: cblite: command not found
Kindly help me how to use this tool to debug the cblite db , i read the help file , but still the same issue .