CouchDBClientFrameworkCouchDBClientA lightweight and powerful CouchDB client written in Swift.OverviewThe source code is available on GitHub.CouchDBClient simplifies interactions with CouchDB by providing an easy-to-use API built with Swift Concurrency (async/await). It supports a wide range of platforms, including:LinuxiOS 13+iPadOS 13+tvOS 13+watchOS 6+visionOS 1+macOS 10.15+Built on top of AsyncHTTPClient, CouchDBClient is ideal for server-side development with Vapor and Hummingbird but is equally suitable for iOS, visionOS, and macOS applications. Check the Essentials section for usage examples.FeaturesCouchDBClient currently supports the following operations:Database Management:Check if a database exists.Create a database.Delete a database.Retrieve a list of all databases.Document Operations:Get a document by ID or retrieve documents using a view.Insert or update documents.Find documents using a MangoQuery and type-safe selectors (see MangoValue and MangoComparison).Delete documents.Authorization:Authenticate with CouchDB.TopicsEssentialsGetting StartedExplore tutorials for using the library in a macOS app or in a Server-Side Swift project.Classesactor CouchDBClientA CouchDB client actor with methods using Swift Concurrency.Protocolsprotocol CouchDBRepresentableA protocol representing an object that can be stored in a CouchDB database. Conforming types must support Codable and Sendable for serialization and thread safety. Every CouchDB document should have _id and _rev properties. Unfortunately DocC ignores properties starting with _ symbol so check the example in the Overview section.Structuresstruct CouchDBErrorA model that represents errors that CouchDB might return. This structure conforms to Error, Codable, and Sendable protocols for flexibility, serialization, and thread safety.struct CouchDBFindResponseA model that represents the response from a CouchDB _find query. This structure is generic, allowing it to represent documents of any type conforming to CouchDBRepresentable. It conforms to Codable and Sendable for serialization and thread safety.struct CouchUpdateResponseA model for the response returned by CouchDB after performing insert, update, or delete operations. This structure conforms to Codable and Sendable for serialization and thread safety.struct IndexDefinitionA struct representing the definition of a Mango Index.struct MangoCreateIndexResponseA struct representing the response from CouchDB when creating a Mango index.struct MangoExplainResponseA struct representing the response from a Mango _explain request.struct MangoIndexA struct representing a Mango Index for CouchDB.struct MangoIndexesResponseA struct representing the response when listing indexes.struct MangoQueryA struct representing a Mango Query for CouchDB.struct MangoSortFieldA struct representing a sort field and direction for Mango queries.struct RowsResponseA response model for CouchDB query results organized in rows. This structure is generic, allowing it to represent documents of any type conforming to CouchDBRepresentable. It conforms to Codable and Sendable for serialization and thread safety.struct UpdateDBResponseA response model for database creation and deletion requests in CouchDB. This structure conforms to Codable and Sendable for serialization and thread safety.Enumerationsenum CouchDBClientErrorAn enumeration representing the various errors that can occur when interacting with CouchDB through a client. This enum conforms to both Error and Sendable, making it suitable for error handling and thread-safe operations.enum MangoComparisonenum MangoSortDirectionAn enum representing the sort direction in Mango queries.enum MangoValueAn enum representing the possible values in a Mango query selector.