Questions tagged [couchbase-lite]

Couchbase Lite is an ultra-lightweight, reliable, secure JSON database built for online/offline mobile application needs and is part of Couchbase's Mobile product.

As a lightweight, document-oriented NoSQL database engine, Couchbase Lite supports data synchronization and is suitable for embedding into mobile applications.

Lightweight means:

  • Embedded – the database engine is a library linked into the app, not a separate server process
  • Small code size – important for mobile apps because they’re often downloaded over cell networks
  • Quick startup time – important because mobile devices have relatively slow CPUs
  • Low memory usage – typical mobile data sets are relatively small, but some documents might have large multimedia attachments
  • Good performance – exact figures depend on your data and application

Document-oriented means:

  • Stores records in flexible JSON format instead of requiring predefined schemas or normalization
  • Documents can have arbitrary-sized binary data, such as multimedia content
  • Application data format can evolve over time without any need for explicit migrations
  • Language native query builder API provides fast lookups without needing special query languages

Syncable means:

  • Any two copies of a database can be brought into sync via an efficient, reliable, and proven replication algorithm
  • Sync can be on demand or continuous
  • Devices can sync with a subset of a large database on a remote server
  • The sync engine supports intermittent and unreliable network connections
  • Conflicts can be detected and resolved
  • Revision trees allow for complex replication topologies – including server-to-server (for multiple data centers) and peer-to-peer – without data loss or false conflicts

Couchbase Lite provides native APIs for:

  • Seamless iOS (Objective-C and Swift), Android (Java), and .NET development
  • Frameworks such as Xamarin
  • Embedded platforms

Resources:

521 questions
20
votes
3 answers

Differences between PouchDB and CouchBase Lite + LiteGap

In a Phonegap offline/online project: What is the difference between using PouchDB and using CouchBase Lite with the new LiteGap plugin? Are they two different solutions to the same problem? Can the PouchDB API be used to interact with a local…
TMichel
  • 4,336
  • 9
  • 44
  • 67
20
votes
2 answers

Android Studio: Importing project into existing project

I've got a Eclipse project which I somehow managed to get working in Android Studio awhile back. It uses TouchDB library/project which I now want to upgrade to their latest offering couchbase-lite-android which looks like it comes ready built for…
KingFu
  • 1,358
  • 5
  • 22
  • 42
15
votes
4 answers

Couchbase-lite and CouchDB

I'm unclear about the requirements for using Couchbase-lite. Is it possible to use Couchbase-lite with CouchDB? Or does Couchbase-lite require Couchbase Server and Sync Gateway? Thanks!
Julian A.
  • 10,928
  • 16
  • 67
  • 107
10
votes
1 answer

Ionic Couchbase Lite Karma Jasmine Unit Testing

After some struggle, I successfully have jasmine tests running using karma, but I can't seem to find an answer to this question: How can I run my jasmine tests on an actual device to test functions related couchbase lite database? I am using this:…
Sumama Waheed
  • 3,579
  • 3
  • 18
  • 32
9
votes
2 answers

Sync and delete removed documents from CouchDB and Couchbase-lite

I'm currently using couchbase-lite inside my iOS and android application to sync down files from a database running CouchDB. Every so often I remove files that are not longer needed, and I would like the same files to be removed from the mobile app…
8
votes
1 answer

Couchbase Lite pull replication fails with error in a sample Couchbase Mobile End to End testing project

I am getting started with Couchbase Mobile. The feature that I am most interested (for now) is PULL replication (keep data on mobile in sync with backend database). I followed the steps described in Using Docker to develop with Couchbase Mobile and…
500865
  • 6,920
  • 7
  • 44
  • 87
8
votes
3 answers

iOS8: Custom Swift Framework accessing external framework written in Objective-C

I'm trying to create a custom framework called CouchbaseKit (a new target in Xcode) in Swift. Inside my CouchbaseKit, I need to access CouchBaseLite Framework that's entirely written in Obj-C. I'm using Cocoapods to manage CouchBaseLite and a…
user1107173
  • 10,334
  • 16
  • 72
  • 117
8
votes
1 answer

Couchbase Lite on Android L

After updating to Android L, I got errors like this, though before (on Android 4.4 Nexus 7 2013) everything was fine: java.lang.NoSuchFieldError: no "I" field "mConnectionPtr" in class "Landroid/database/sqlite/SQLiteConnection;" or its…
Andrii Bas
  • 613
  • 1
  • 6
  • 20
6
votes
5 answers

Limit access to the Admin REST API of SyncGateway

According to the documentation the Admin REST API of the SyncGateway shouldn't be exposed. Quote: By default, the Admin REST API runs on port 4985 (unless you change the adminInterface configuration parameter). Do not expose this port—It…
6
votes
1 answer

How to allow all the HTTPS URLs to sync in CouchbaseLite Android

I have an Application which using Couchbase Lite. Till now i was using http and now we need to make little secure. So how to allow all the HTTPS URLs to sync with CouchbaseLite Android?
Droid_Dev
  • 1,162
  • 1
  • 8
  • 25
6
votes
1 answer

Couchbase mobile replication through REST-API

While trying to integrate couchbase mobile (version 1.1.0) in our hybrid mobile app (ionic), we ran into an issue with the push replication on iOS. At some point in the application (after the local database has been created and so on) a design…
Bert
  • 257
  • 1
  • 2
  • 10
6
votes
6 answers

CouchDB as Cordova/Phonegap database

Target I want to build a cross-platform mobile app with cordova/phonegap which require a database (client-side only). My target platform is mainly Android and iOS. I have chosen couchbase-lite as my storage. Problem But I could not find any good…
Nafeez Abrar
  • 1,045
  • 10
  • 27
5
votes
2 answers

XCode 12.3 building for iOS Simulator, but linking in dylib built for iOS, couchbaselite framework for architecture arm64 Using M1 Chipset

Encountered a build issue on IOS too with "building for iOS Simulator, but linking in dylib built for iOS, file '.../platforms/ios/Pods/CouchbaseLite/iOS/CouchbaseLite.framework/CouchbaseLite' for architecture arm64" I currently using nativescript…
Chinchan
  • 61
  • 1
  • 3
5
votes
1 answer

Using Couchbase in background thread

I am developing an app which uses Couchbase to sync the documents. Right now all the documents I am creating on main thread and using the same. But now I got stuck in a scenario where I need to create and push the document in some other thread than…
Shyam
  • 417
  • 4
  • 16
5
votes
1 answer

unable to connect through sync_gateway to remote server

I am trying to start sync_gateway from cmd with following command: sync_gateway -url http://75.76.221.21:8091 I received following error: 20:33:23.014229 WARNING: Error installing Couchbase design doc: Put …
Waqas
  • 49
  • 4
1
2 3
34 35