Couchbase Lite es un motor de base de datos sincronizado (nosql) liviano, orientado a documentos.
La implementación de CouchBase Lite está en la cima de CouchBase Lite Core, que también es una nueva implementación multiplataforma de las características de la base de datos y las características de consulta, así como el versiones de documentos.
iOS 12.0+ | macOS 12+
iOS 12.0+ | MacOS 12.0+
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-ios.git",
from: "3.2.0"),
],
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-swift-ee.git",
from: "3.2.0"),
],
La información más detallada sobre cómo configurar está disponible aquí: Swift Package Manager
Puede usar Cocoapods para instalar CouchbaseLite para Objective-C API o CouchbaseLiteSwift para Swift API agregándolo en su podfile:
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Enterprise'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Swift'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Swift-Enterprise'
end
Puede usar Carthage para instalar CouchbaseLite agregándolo en su Cartfile:
binary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Community.json"
binary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Enterprise.json"
Al ejecutar
carthage update or build, Carthage construirá el marco de CouchBaselite y CouchBaselitesWift.
$ git clone https://github.com/couchbase/couchbase-lite-ios.git
$ cd couchbase-lite-ios
$ git submodule update --init --recursive
Si aún no está instalado, instale doxygen , brew install doxygen
Ejecutar ./scripts/build_framework.sh para crear un marco de plataforma que podría ser un marco Objective-C o Swift. Las plataformas compatibles incluyen iOS, TVOS y macOS.
$ ./Scripts/build_framework.sh -s "CBL ObjC" -p iOS -o output // For building the ObjC framework for iOS
$ ./Scripts/build_framework.sh -s "CBL Swift" -p iOS -o output // For building the Swift framework for iOS
Al igual que todo el código fuente de CouchBase, esto se lanza bajo la licencia Apache 2.