{"id":38050282,"url":"https://github.com/koombea/couchbase-lite-wrapper-ios","last_synced_at":"2026-01-16T20:04:16.340Z","repository":{"id":92898301,"uuid":"385302030","full_name":"koombea/couchbase-lite-wrapper-ios","owner":"koombea","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-27T19:56:41.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-03-28T18:04:15.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koombea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-07-12T15:52:58.000Z","updated_at":"2024-03-27T19:30:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"433582a5-4c4b-41b2-b5fb-2edca17071fc","html_url":"https://github.com/koombea/couchbase-lite-wrapper-ios","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/koombea/couchbase-lite-wrapper-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koombea","download_url":"https://codeload.github.com/koombea/couchbase-lite-wrapper-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koombea%2Fcouchbase-lite-wrapper-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T20:04:16.231Z","updated_at":"2026-01-16T20:04:16.316Z","avatar_url":"https://github.com/koombea.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Couchbase Lite Wrapper for iOS and MacOS\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) \n[![Swift Package Manager](https://rawgit.com/jlyonsmith/artwork/master/SwiftPackageManager/swiftpackagemanager-compatible.svg)](https://swift.org/package-manager/)\n\n**Couchbase Lite Wrapper** is a library written in Swift that makes it easy for you to implement database CRUD operations with [Couchbase Lite for iOS and MacOS](https://github.com/couchbase/couchbase-lite-ios)\n\n## Requirements\n- iOS 13.0+ | MacOS 10.13+\n\n## Installation\n\n### Swift Package Manager\n\nThe Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nThe Package Manager is included in Swift 3.0 and above.\n\n```swift\ndependencies: [\n        .package(name: \"CouchbaseLiteWrapper\",\n                 url: \"https://github.com/koombea/couchbase-lite-wrapper-ios.git\", \n                 from: \"1.0.0\"),\n    ],\n```\n\n## The Basics\n\n### Setup\n\nCreate a couchbase database for each of the models you want to store\n\n```swift\ncouchbaseDatabase = CouchbaseDatabase(databaseName: \"User\")\n\n```\n\n### Create / Update document\n\n```swift\nlet document = CouchbaseDocument(id: \"1\", attributes: [\"name\": \"Brad\", \"last_name\": \"Depp\"])\ncouchbaseDatabase.save(document)\n\n```\n\n### Fetch documents\n\n```swift\nlet expression = Expression.property(\"attributes.name\").equalTo(Expression.string(\"Brad\"))\nlet documents = couchbaseDatabase.fetchAll(whereExpression: expression)\n\n```\n\n### Delete Documents\n\n```swift\nlet expression = Expression.property(\"attributes.name\").equalTo(Expression.string(\"Brad\"))\ncouchbaseDatabase.deleteAll(whereExpression: expression)\n\n```\n\n## Couchbase Lite Wrapper + Codable\n[Codable](https://developer.apple.com/documentation/swift/codable) is a type alias for the `Encodable` and `Decodable` protocols part of the Swift Standard Library framework that makes your data types encodable and decodable for compatibility with external representations such as JSON.\n\nHaving a `User: Codable` model, you can fetch models like this:\n\n```swift\nlet users = couchbaseDatabase.fetchAll(User.self)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoombea%2Fcouchbase-lite-wrapper-ios/lists"}