Classes

The following classes are available globally.

  • A compiled database query, similar to a N1QL or SQL query.

    See more

    Declaration

    Swift

    public class Query
  • A Couchbase Lite database.

    See more

    Declaration

    Swift

    public final class Database
  • Properties defines a JSON-compatible object, much like a Dictionory but with type-safe accessors. It is implemented by classes Document and Subdocument.

    See more

    Declaration

    Swift

    public class Properties
  • A Couchbase Lite document. A document has key/value properties like a Dictionary; their API is defined by the superclass Properties. To learn how to work with properties, see that class’s documentation.

    See more

    Declaration

    Swift

    public class Document : Properties
  • Subdocument is a nested document with its own set of named properties. In JSON terms it’s a nested JSON Map object. Like Document, Subdocument is mutable, so you can make changes in-place. The difference is that a Subdocument doesn’t have its own ID. It’s not a first-class entity in the database, it’s just a nested object within the document’s JSON. It can’t be saved individually; changes are persisted when you save its document.

    See more

    Declaration

    Swift

    public class Subdocument : Properties, NSCopying