PostgresNIO Documentation

Structure Postgres​Random​Access​Row

public struct PostgresRandomAccessRow  

A random access row of PostgresCells. Its initialization is O(n) where n is the number of columns in the row. All subsequent cell access are O(1).

%261 PostgresRandomAccessRow PostgresRandomAccessRow RandomAccessCollection RandomAccessCollection PostgresRandomAccessRow->RandomAccessCollection

Conforms To

RandomAccessCollection

Nested Type Aliases

Element

public typealias Element = PostgresCell

Index

public typealias Index = Int

Properties

start​Index

public var startIndex: Int  

end​Index

public var endIndex: Int  

count

public var count: Int  

Methods

contains(_:​)

public func contains(_ column: String) -> Bool  

Checks if the row contains a cell for the given column name.

Parameters

column String

The column name to check against

Returns

true if the row contains this column, false if it does not.