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
Custom JSON Coders for Postgres Data Coders (vapor#159)
* Changed dependencies to Skelpo forks
* Conformed PostgresDataDecoder to PostrgesDecoder and PostgresDataEncoder to PostgresEncoder
* Added JSON encoder/decoder configurations to PostgresConfiguration initializer
* Added .encoder and .decoder properties to _ConnectionPoolPostgresDatabase extension
* Pass configuration.encoder and .decoder into PostgresConnection.connect call in PostgresConnectionSource.makeConnection method
* Use PostgresRow.decoder to decode data in PostgresRow.decode(column:as:) method
* Added .encoder and .decoder properties to _PostgresSQLDatabase
* Use .encoder to encode query binds in _PostgresSQLDatabase.execute(sql:onRow:) method
* Use .source instead of .sourceInfo propety in _ConnectionPoolPostgresDatabase.encoder and .decoder properties
* Use skeplo/master for PostgresNIO until forks are merged
* Replaced PostgresRow:SQLRow conformance with .sqlRow(using:) method
This results in an erased private _PostgreSQLRow struct instance that handles all the confrmance
* Replaced uses of Postgres<Coder> protocols with PostgresData<Coder> types
* Use original PostgresNIO library instead of Skelpo fork
* Fixed calls to PostgresConnection.sql(encoder:decoder:) in PostgresKitTests
* Deleted Xcode workspace
* Keep PostgresRow.sqlRow(using:) method internal
* Removed PostgresConnection.sql() extension method
* Pass in PostgresData coders instead of JSON coders to PostgresConfiguration init
* Removed leftover PostgresData coder declarations in PostgresConnection.test(on:) method
* Revert "Keep PostgresRow.sqlRow(using:) method internal"
This reverts commit 0fa2d80.
* Use registered JSONEncoder to handle DoJSON case in PostgresDataEncoder
* Added default value to PostgresDataEncoder.init(json:) and PostgresDataDecoder.init(json:) initializers
* Renamed PostgresRow.sqlRow(using:) method to .sql(using:)
* Replace uses of PostgresRow.sqlRow with .sql
* Revert all changes made for custom JSON
* Add default value to PostgresRow.sql method
Co-Authored-By: Tanner <me@tanner.xyz>
* Fix PostgresDataDecoder paramater name for .sql call
0 commit comments