Skip to content

Commit

Permalink
Documentation updated (#19)
Browse files Browse the repository at this point in the history
* swift-docc-plugin 1.3.0

* async-http-client 1.19.0

* replaced deprecated .createNew with the new .singleton

* Adding _find capability. (#13)

* docs

* tabs

* renames

* added test for find method with body

* docs added

* findError added

* tests renamed

* added test for find method with generic type

* docs

* README updated

* updated dependencies

* docs updated

* try Swift 5.7.1

* Update build-ubuntu.yml

* Swift 5.7.3

* Revert "Swift 5.7.3"

This reverts commit ab8f67a.

* updated dependencies

* Docs updated

* Delete .github/workflows/CodeQL.yml

* dependencies updated

* fixed when update method didn’t use passed dateEncodingStrategy

* noData error added

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* …

* migrating to new HTTPClientRequest from HTTPClient.Request wip

* rename

* tests updated

* auth fixed

* collect body bytes before returning response

* param renamed to make keep backward compatibility with old methods

* marking old find as deprecated

* private

* deprecated message

* renames

* moved deprecations

* docs

* docs

* added Codable to CouchDBRepresentable protocol

* added RowsResponse model

* docs

* Vapor tutorial updated

* docs

* docs and refactoring

* docs and refactoring

* Tutorials updated

* docs

* platforms list updated

* minimum swift version 5.8

* workflow updated

* Update build-ubuntu.yml

* Update build-macos.yml

* import NIOFoundationCompat to fix building on Ubuntu

* using async-http-client from 1.21.0. Not calling http

* Using HTTPClient.shared if eventLoopGroup not provided. No more calls httpClient.syncShutdown() if using shared singleton

* docs updated

* docs updated

---------

Co-authored-by: Gregório Gevartosky Torrezan <greg.gevartosky@gmail.com>
  • Loading branch information
makoni and gevartosky authored Apr 11, 2024
1 parent 86982ef commit abaf4d2
Show file tree
Hide file tree
Showing 23 changed files with 128 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ print(testDoc) // testDoc has _id and _rev values now

```swift
// get data from a database by document ID
var doc: ExpectedDoc = try await couchDBClient.get(dbName: "databaseName", uri: "documentId")
var doc: ExpectedDoc = try await couchDBClient.get(fromDB: "databaseName", uri: "documentId")
print(doc)

// Update value
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Sources/CouchDBClient/CouchDBClient.docc/Resources/errors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit abaf4d2

Please sign in to comment.