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
-1
votes
1 answer

Couchbase Lite alternative

I have an Android project whose use CouchBase lite 1.4 with CouchDB .We want to use the last CouchBase lite version but I have been reading this in the documentation about CouchBase Lite 2.0 : The new protocol is incompatible with CouchDB-based…
JoCuTo
  • 2,463
  • 4
  • 28
  • 44
-1
votes
2 answers

How to send data to couchbase server using sync gateway, how to connect to sync gateway, URL?

I am developing Android mobile application on Windows(OS). I want to send data to couchbase server. I am making mistake in URL for sync gateway. I am running services on my machine as well. I have already set up couchbase server. My config.json…
-1
votes
1 answer

Couchbase lite 2.0.0-DB021, Android, - OrderBy multiple columns?

How can I translate the following Orderby sql statement to ORDER BY Country ASC, CustomerID DESC; I have manage to write Ordering.property("Country").ascending(); but not sure how to add the next condition. Thanks
Itai.S.
  • 144
  • 13
-1
votes
1 answer

How to avoid Keys with Duplicate Values in Couchbase.Lite

Is it possible to tell CB.Lite to reject documents that contain values from a certain key repeated? For instance, if i have the next document already in CB.Lite: { "Dog": { "Name": "Dug", "Color": "Blue", "Age": 2 } } Is it…
deczaloth
  • 7,094
  • 4
  • 24
  • 59
-1
votes
1 answer

Couchbase server and Android

It's possible to connect an Android application directly to a Couchbase server database?. It's possible to get a Document from Couchbase's bucket and use it from an Android application?. Thank you.
code lost
  • 13
  • 1
  • 5
-1
votes
2 answers

How to set the data into listview by using the UsersAdapter?

I am developing the application in Couchbase lite database.My problem is when i query the data from the couchbase lite database and set the data into listview by ArrayAdapter the data are viewing like below image.The ArrayAdapter code is CouchDb…
Prabha Karan
  • 1,309
  • 3
  • 17
  • 35
-1
votes
1 answer

How to create a new document in Couchbase?

Anyone who know how to create a new document in Couchbase iOS implementation? Step 1: Create Couchbase Buckets Step 2: Create Document What next step? Please see attached. Please look at the documents I wanted to add: Screen shots…
-1
votes
1 answer

Retrieve data in Couchbase Lite without JSON

How to retrieve data from DB having a particular key in Couchbase Lite without JSON?(IOS Framework)
-1
votes
1 answer

iOS use couchbase lite

i want to make a function make server database and app database sync each other. just like we commit and sync codes to github. Is the couchbase lite can do that? if it can not, what framework can ? thanks!
hanorz
  • 21
  • 3
-2
votes
2 answers

Couchbase lite 2.0 DP13 Android- invalid revisions

I'm using Couchlite 2.0DP13 to sync a couch db from the server on Android. My replication code looks like: URI uri = null; try { uri = new URI(my_url"); } catch (URISyntaxException e) { …
Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127
-2
votes
2 answers

couchbase unable to resolve symbol getViewId()

I updated couchbase from 1.0.4 to 1.2.0 and got an error with com.couchbase.lite.view object saying "cannot resolve symbol "couchbaseView.getViewId()". What is the replacement for this?
1 2 3
34
35