Database Files

22 views
Skip to first unread message

Julio Albuquerque

unread,
Jul 23, 2015, 5:59:50 PM7/23/15
to Couchbase Mobile
I created a database to be used initially in the application.
I am now using Xamarin Android with Couchbase Lite .Net 1.1.0.1.
The files created were:
db.cblite
db.cblite-shm
db.cblite-wal

Which file is actually the database?
The cblite-shm files and cblite-wal are needed? What are?

Right now I'm just copying the file and db.cblite works, but in time to synchronize is returning error in pull.Start ().

Julio.

Jens Alfke

unread,
Jul 23, 2015, 6:08:14 PM7/23/15
to mobile-c...@googlegroups.com
On Jul 23, 2015, at 2:59 PM, Julio Albuquerque <jcezar.al...@gmail.com> wrote:

Which file is actually the database?
The cblite-shm files and cblite-wal are needed? What are?

Those are side files created and used by SQLite. You can ignore them.

Right now I'm just copying the file and db.cblite works, but in time to synchronize is returning error in pull.Start ().

Are you using the Manager method to install a database file? You need to.

—Jens

Julio Albuquerque

unread,
Jul 23, 2015, 6:31:36 PM7/23/15
to Couchbase Mobile, jcezar.al...@gmail.com
Yes, I am using the manager.

var manager = Manager.SharedInstance;
var assets = this.Assets.Open ("nossoguia.cblite");
manager.ReplaceDatabase ("nossoguia", assets, null);

Reply all
Reply to author
Forward
0 new messages