DataStoreStatement

public protocol DataStoreStatement

This protocol represents a statement that will be executed in a specific storage implementations. Concrete types of this protocol may include SQL insert statements, queries or GraphQL mutations.

  • The type of the variables container related to a concrete statement implementation

    Declaration

    Swift

    associatedtype Variables
  • The type of the Model associated with a particular statement

    Declaration

    Swift

    @available(*, deprecated, message: "Use of modelType inside the DatastoreStatement is deprecated, use modelSchema instead.")
    var modelType: Model.Type { get }
  • The model schema of the Model associated with a particular statement

    Declaration

    Swift

    var modelSchema: ModelSchema { get }
  • The actual string content of the statement (e.g. a SQL query or a GraphQL document)

    Declaration

    Swift

    var stringValue: String { get }
  • The variables associated with the statement

    Declaration

    Swift

    var variables: Variables { get }