1

I am building a xamarin application and I am using couchbase lite as offline database .

How can I view the data saved in couchbase lite ? and where is it stored ?

Matthew Groves
  • 25,181
  • 9
  • 71
  • 121
Maria Nabil
  • 139
  • 1
  • 10
  • @Natrium yes , but I don't find a way to access the data , the tools mentioned didn't work for me – Maria Nabil Dec 19 '19 at 13:10
  • 1
    No, CouchDB ≠ Couchbase. They have a common ancestry but have diverged greatly. – Jens Alfke Dec 19 '19 at 21:35
  • I found the exact path of the data : "/data/data/com.companyname.couchbasetrial/files/.local/share/Maria" but still I can't find this location or he database files – Maria Nabil Dec 26 '19 at 15:38

2 Answers2

1

"How can I view the data" is an extremely broad question. I think the only reasonable answer is to point you to the Couchbase Lite .NET documentation, for example the section on the Document API. If you read the docs and have more specific questions you can ask those.

The exact location of the data in the filesystem depends on the platform you're running on. You can find it in the DatabaseConfiguration.defaultDirectory property. But there's almost never a need to use the files directly.

Jens Alfke
  • 1,946
  • 12
  • 15
  • I found the exact path of the data : "/data/data/com.companyname.couchbasetrial/files/.local/share/Maria" but still I can't find this location or he database files – Maria Nabil Dec 26 '19 at 14:24
0

You can also query your data. Here is the API documentation: https://docs.couchbase.com/couchbase-lite/current/csharp.html#query

Sandy
  • 24
  • 2