Structure
PostgresCell
A representation of a cell value within a
PostgresRow and PostgresRandomAccessRow.struct PostgresCell
Mentioned in
Topics
Initializers
Instance Properties
var bytes: ByteBuffer?The cell’s value as raw bytes.var columnIndex: IntThe cell’s column index within the row.var columnName: StringThe cell’s column name within the row.var dataType: PostgresDataTypeThe cell’s data type. This is important metadata when decoding the cell.var format: PostgresFormatThe format in which the cell’s bytes are encoded.
Instance Methods
func decode<T, JSONDecoder>(T.Type, context: PostgresDecodingContext<JSONDecoder>, file: String, line: Int) throws -> TDecode the cell into a Swift type that conforms toPostgresDecodable.func decode<T>(T.Type, file: String, line: Int) throws -> TDecode the cell into a Swift type that conforms toPostgresDecodable.
Relationships
Conforms To
Swift.EquatableSwift.SendableSwift.SendableMetatype
See Also
struct PostgresQueryA Postgres SQL query that can be executed on a Postgres server. Contains the raw SQL string and bindings.struct PostgresBindingsstruct PostgresRowPostgresRowrepresents a single table row that is received from the server for a query or a prepared statement. Its element type isPostgresCell.struct PostgresRowSequenceAn async sequence ofPostgresRows.struct PostgresColumnsA collection ofPostgresColumncolumn metadata for a PostgreSQL query result.struct PostgresColumnMetadata for a single column in a PostgreSQL query result.struct PostgresRandomAccessRowA random access row ofPostgresCells. Its initialization is O(n), where n is the number of columns in the row. All subsequent cell accesses are O(1).struct PostgresQueryMetadata