Native API

Native API

If you’re familiar with relational databases and SQL, you’ll notice that Couchbase Lite works differently and has its own database terminology.

Much like Couchbase Server, Couchbase Lite handles data as JSON documents, and uses concepts such as databases, documents, replication, and views and queries. Additionally, Couchbase Lite handles revisions, and a changes feed from Couchbase Server for conflict management.

Articles


Manager
Database
Document
Revision
This guide shows you how to use Document Revisions. A Revision is used to resolve conflicts detected during replication.
Attachment
This guide shows you how to use Document Attachments. Attachments store data alongside a document. The data is binary, tagged with a MIME type, and can be arbitrarily large.
View
This guide shows you how to use Database Views. A View is a persistent index of documents in a database, generated using map/reduce, which you then query to find data.
Query
This guide shows you how to use a Database Query. A Query looks up results from an existing View by returning a range of the view's index, possibly using reducing or grouping to aggregate rows.
Replication
Model (iOS only)
This guide documents Model objects, which allow you to create an application object model that bridges to Couchbase Lite documents. [Objective-C only]