Skip to content

PostgresKit 2.0.0 Beta 3

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 13 Dec 22:05
8d3a5d3

Refactors PostgresDataEncoder to be more flexible. There are now three distinct paths for encoding:

  • Single value: Cast to PostgresDataConvertible, if fail, unwrap and try again
  • Unkeyed value: Convert to JSONB[]
  • Keyed value: Convert to JSONB

Refactors PostgresDataDecoder to operate similarly.

Also updates PostgresRow's SQLRow conformance to latest changes.