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

Add proper support for timestamp arrays

Open 0xTim opened this issue 4 years ago • 2 comments

0xTim avatar Mar 23 '21 17:03 0xTim

Do we want to add this support also for the potentially new PSQLCodable type? You would add this by adding

extension Date: PSQLArrayElement {
    static var psqlArrayType: PSQLDataType { .timestamptzArray }
    static var psqlArrayElementType: PSQLDataType { .timestamptz }
}

to Array+PSQLCodable. This should be it!

fabianfett avatar Apr 21 '21 12:04 fabianfett

Yeah if that's simpler and better long term we should migrate to that

0xTim avatar Apr 22 '21 09:04 0xTim

Superseded (at last) by #463

gwynne avatar Mar 08 '24 18:03 gwynne