SQLConnection

public protocol SQLConnection : DatabaseQueryable where Self.Query : SQLQuery

Types conforming to this protocol can be used to build SQL queries.

  • Decodes a Decodable type from this connection’s output. If a table is specified, values should come only from columns in that table.

    Declaration

    Swift

    func decode<D>(_ type: D.Type, from row: Output, table: Query.Select.TableIdentifier?) throws -> D where D : Decodable