Display All records of database

9 views
Skip to first unread message

vidya jejurkar

unread,
Oct 18, 2016, 6:09:07 AM10/18/16
to Couchbase Mobile
I want to print/display all records which gets saved in Android couch base Database.how to do it?please help

Brendan Duddridge

unread,
Oct 18, 2016, 12:25:48 PM10/18/16
to Couchbase Mobile
You can create an allDocuments query to get a list of all documents in the database. As for printing/displaying them, that ball is in your court for Android :)

On CBLDatabase there's a method called createAllDocumentsQuery which returns a CBLQuery object. Use that to fetch all your documents.

At least it works that way on iOS. I'm assuming it works the same way on Android.
Reply all
Reply to author
Forward
0 new messages