Skip to content

Protocol

SQLRow

Represents a single row in a result set returned from an executed SQL query.
protocol SQLRow : Sendable

Mentioned in

Overview

Each of the protocol’s requirements corresponds closely to a similarly-named requirement of Swift’s KeyedDecodingContainerProtocol, in order to provide a Codable-like interface for generic row access. The additional logic which covers the gap between Decodable types and SQLRows is provided by SQLRowDecoder; see that type for additional discussion and further detail.

Topics

Instance Properties

Instance Methods

Relationships

Inherits From

  • Swift.Sendable
  • Swift.SendableMetatype

See Also

Data Access

  • protocol SQLDatabase
    The common interface to SQLKit for both drivers and client code.
  • struct SQLRowDecoder
    An implementation of Decoder designed to decode “models” (or, in general, aggregate Decodable types) from SQLRows returned from a database query.
  • struct SQLQueryEncoder
    An implementation of Encoder designed to encode “models” (or, in general, aggregate Encodable types) into a form which can be used as input to a database query.