File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed
Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 11import Pgvector
22import PostgresNIO
33
4- extension HalfVector : @retroactive PostgresEncodable {
5- public static var psqlType : PostgresDataType = PostgresDataType ( 1 )
4+ extension HalfVector : @retroactive PostgresDynamicTypeEncodable {
5+ public static var psqlType : PostgresDataType ?
66
7- public static var psqlFormat : PostgresFormat {
7+ public var psqlType : PostgresDataType {
8+ HalfVector . psqlType!
9+ }
10+
11+ public var psqlFormat : PostgresFormat {
812 . binary
913 }
1014
Original file line number Diff line number Diff line change 11import Pgvector
22import PostgresNIO
33
4- extension SparseVector : @retroactive PostgresEncodable {
5- public static var psqlType : PostgresDataType = PostgresDataType ( 1 )
4+ extension SparseVector : @retroactive PostgresDynamicTypeEncodable {
5+ public static var psqlType : PostgresDataType ?
66
7- public static var psqlFormat : PostgresFormat {
7+ public var psqlType : PostgresDataType {
8+ SparseVector . psqlType!
9+ }
10+
11+ public var psqlFormat : PostgresFormat {
812 . binary
913 }
1014
Original file line number Diff line number Diff line change 11import Pgvector
22import PostgresNIO
33
4- extension Vector : @retroactive PostgresEncodable {
5- public static var psqlType : PostgresDataType = PostgresDataType ( 1 )
4+ extension Vector : @retroactive PostgresDynamicTypeEncodable {
5+ public static var psqlType : PostgresDataType ?
66
7- public static var psqlFormat : PostgresFormat {
7+ public var psqlType : PostgresDataType {
8+ Vector . psqlType!
9+ }
10+
11+ public var psqlFormat : PostgresFormat {
812 . binary
913 }
1014
You can’t perform that action at this time.
0 commit comments