Classes
The following classes are available globally.
-
Clientrepresents a HTTP client for a FaunaDB server. It provides methods, such asqueryandquery(batch:)that you can use to execute queries in your server.See moreNote
This class is meant to be reused as much as possible. If you need to connect to the same server but using a different key’s secret, usenewSessionClientmethod instead of creating a newClientinstance.Declaration
Swift
public final class Client
-
Wraps a HTTP 400 error response.
See moreDeclaration
Swift
public final class BadRequest: FaunaError -
Wraps a HTTP 401 error response.
See moreDeclaration
Swift
public final class Unauthorized: FaunaError -
Wraps a HTTP 403 error response.
See moreDeclaration
Swift
public final class PermissionDenied: FaunaError -
Wraps a HTTP 404 error response.
See moreDeclaration
Swift
public final class NotFound: FaunaError -
Wraps a HTTP 500 error response.
See moreDeclaration
Swift
public final class InternalError: FaunaError -
Wraps a HTTP 503 error response.
See moreDeclaration
Swift
public final class Unavailable: FaunaError -
Wraps any unknown error.
See moreDeclaration
Swift
public final class UnknownError: FaunaError -
Error returned when a timeout occurs during the query execution.
See moreDeclaration
Swift
public final class TimeoutError: FaunaError
-
Represent the result of an asynchronous query executed by FaunaDB.
See moreNote
All methods available to handleQueryResultsuccess or failure will optionally receive aDispatchQueue. Remember, the onlyDispatchQueueallowed to update the UI isDispatchQueue.main.Declaration
Swift
public class QueryResult<T>
Classes Reference