postgres-nio icon indicating copy to clipboard operation
postgres-nio copied to clipboard

Row contains performance

Open tanner0101 opened this issue 5 years ago • 1 comments

Add performant method for checking if a PostgresRow contains a given column.

tanner0101 avatar Dec 13 '19 23:12 tanner0101

@gwynne Do you know what we would use this feature for?

fabianfett avatar Mar 14 '22 16:03 fabianfett

PostgresRandomAccessRow has this feature today:

struct PostgresRandomAccessRow {
    /// Checks if the row contains a cell for the given column name.
    /// - Parameter column: The column name to check against
    /// - Returns: `true` if the row contains this column, `false` if it does not.
    func contains(_ column: String) -> Bool
}

fabianfett avatar Aug 25 '23 15:08 fabianfett