Structure
PostgresRandomAccessRow
public struct PostgresRandomAccessRow
A random access row of PostgresCell
s. Its initialization is O(n) where n is the number of columns
in the row. All subsequent cell access are O(1).
Relationships
Conforms To
RandomAccessCollection
Nested Type Aliases
Element
public typealias Element = PostgresCell
Index
public typealias Index = Int
Properties
startIndex
public var startIndex: Int
endIndex
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
Name | Type | Description |
---|---|---|
column | String |
The column name to check against |
Returns
true
if the row contains this column, false
if it does not.