You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use PSQLFormat when encoding and decoding (vapor#158)
Postgres supports two encodings on the wire text (0) and binary (1). Up until now the new `PSQLDecodable` only supported binary encoding.
- This PR does not change any public API
- Rename `PSQLFormatCode` to `PSQLFormat`
- Add `PSQLFormat` as parameter to the decode function.
- Add `psqlFormat: PSQLFormat` as protocol requirement for `PSQLEncodable`
- All existing types encode into and decode from `.binary` format only (we can change this with follow up PRs)
Co-authored-by: George Barnett <gbarnett@apple.com>
0 commit comments