Couchbase Lite adalah mesin basis data yang ringan, berorientasi dokumen (NoSQL), sinkronisasi.
Implementasi Couchbase Lite berada di atas Couchbase Lite Core, yang juga merupakan implementasi lintas-platform baru dari fitur database dan fitur kueri, serta versi dokumen.
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"),
],
Informasi lebih rinci tentang cara pengaturan tersedia di sini: Swift Package Manager
Anda dapat menggunakan cocoapods untuk menginstal CouchbaseLite untuk API Objective-C atau CouchbaseLiteSwift untuk SWIFT API dengan menambahkannya di podfile Anda:
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
Anda dapat menggunakan Carthage untuk menginstal CouchbaseLite dengan menambahkannya di cartfile Anda:
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"
Saat menjalankan
carthage update or build, Carthage akan membangun kerangka kerja Couchbaselite dan Couchbaseliteswift.
$ git clone https://github.com/couchbase/couchbase-lite-ios.git
$ cd couchbase-lite-ios
$ git submodule update --init --recursive
Jika belum diinstal, instal doxygen , brew install doxygen
Jalankan ./scripts/build_framework.sh untuk membangun kerangka kerja platform yang bisa berupa kerangka Objective-C atau Swift. Platform yang didukung termasuk iOS, TVOS, dan 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
Seperti semua kode sumber Couchbase, ini dirilis di bawah lisensi Apache 2.