Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 16, 2025
1 parent 368ef1c commit 912e6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Sources/Pgvector/HalfVector.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if canImport(PostgresClientKit)
// TODO make conditional
import PostgresClientKit
#endif

struct HalfVector: Equatable {
var value: [Float16]
Expand All @@ -14,10 +13,9 @@ struct HalfVector: Equatable {
}
}

#if canImport(PostgresClientKit)
// TODO make conditional
extension HalfVector: PostgresValueConvertible {
public var postgresValue: PostgresValue {
return PostgresValue(String(describing: value))
}
}
#endif
6 changes: 2 additions & 4 deletions Sources/Pgvector/Vector.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if canImport(PostgresClientKit)
// TODO make conditional
import PostgresClientKit
#endif

struct Vector: Equatable {
var value: [Float]
Expand All @@ -14,10 +13,9 @@ struct Vector: Equatable {
}
}

#if canImport(PostgresClientKit)
// TODO make conditional
extension Vector: PostgresValueConvertible {
public var postgresValue: PostgresValue {
return PostgresValue(String(describing: value))
}
}
#endif

0 comments on commit 912e6f1

Please sign in to comment.