@@ -11,12 +11,12 @@ protocol PostgresEncodable {
11
11
12
12
/// Encode the entity into the `byteBuffer` in Postgres binary format, without setting
13
13
/// the byte count. This method is called from the default `encodeRaw` implementation.
14
- func encode< JSONEncoder: PostgresJSONEncoder > ( into byteBuffer: inout ByteBuffer , context: PSQLEncodingContext < JSONEncoder > ) throws
14
+ func encode< JSONEncoder: PostgresJSONEncoder > ( into byteBuffer: inout ByteBuffer , context: PostgresEncodingContext < JSONEncoder > ) throws
15
15
16
16
/// Encode the entity into the `byteBuffer` in Postgres binary format including its
17
17
/// leading byte count. This method has a default implementation and may be overriden
18
18
/// only for special cases, like `Optional`s.
19
- func encodeRaw< JSONEncoder: PostgresJSONEncoder > ( into byteBuffer: inout ByteBuffer , context: PSQLEncodingContext < JSONEncoder > ) throws
19
+ func encodeRaw< JSONEncoder: PostgresJSONEncoder > ( into byteBuffer: inout ByteBuffer , context: PostgresEncodingContext < JSONEncoder > ) throws
20
20
}
21
21
22
22
/// A type that can decode itself from a postgres wire binary representation.
@@ -73,7 +73,7 @@ protocol PostgresCodable: PostgresEncodable, PostgresDecodable {}
73
73
extension PostgresEncodable {
74
74
func encodeRaw< JSONEncoder: PostgresJSONEncoder > (
75
75
into buffer: inout ByteBuffer ,
76
- context: PSQLEncodingContext < JSONEncoder >
76
+ context: PostgresEncodingContext < JSONEncoder >
77
77
) throws {
78
78
// The length of the parameter value, in bytes (this count does not include
79
79
// itself). Can be zero.
@@ -89,16 +89,16 @@ extension PostgresEncodable {
89
89
}
90
90
}
91
91
92
- struct PSQLEncodingContext < JSONEncoder: PostgresJSONEncoder > {
92
+ struct PostgresEncodingContext < JSONEncoder: PostgresJSONEncoder > {
93
93
let jsonEncoder : JSONEncoder
94
94
95
95
init ( jsonEncoder: JSONEncoder ) {
96
96
self . jsonEncoder = jsonEncoder
97
97
}
98
98
}
99
99
100
- extension PSQLEncodingContext where JSONEncoder == Foundation . JSONEncoder {
101
- static let `default` = PSQLEncodingContext ( jsonEncoder: JSONEncoder ( ) )
100
+ extension PostgresEncodingContext where JSONEncoder == Foundation . JSONEncoder {
101
+ static let `default` = PostgresEncodingContext ( jsonEncoder: JSONEncoder ( ) )
102
102
}
103
103
104
104
struct PostgresDecodingContext < JSONDecoder: PostgresJSONDecoder > {
0 commit comments