File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1+ extension Set : PostgresDataConvertible where Element: PostgresDataConvertible {
2+ public static var postgresDataType : PostgresDataType {
3+ [ Element ] . postgresDataType
4+ }
5+
6+ public init ? ( postgresData: PostgresData ) {
7+ guard let array = [ Element] ( postgresData: postgresData) else {
8+ return nil
9+ }
10+ self = Set ( array)
11+ }
12+
13+ public var postgresData : PostgresData ? {
14+ [ Element] ( self ) . postgresData
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ final class PostgresNIOTests: XCTestCase {
600600 }
601601
602602 func testRemoteTLSServer( ) throws {
603- let url = " postgres://uymgphwj:7_tHbREdRwkqAdu4KoIS7hQnNxr8J1LA@elmer.db.elephantsql.com:5432/uymgphwj "
603+ // postgres://uymgphwj:7_tHbREdRwkqAdu4KoIS7hQnNxr8J1LA@elmer.db.elephantsql.com:5432/uymgphwj
604604 let elg = MultiThreadedEventLoopGroup ( numberOfThreads: 1 )
605605 defer { try ! elg. syncShutdownGracefully ( ) }
606606
@@ -793,8 +793,6 @@ final class PostgresNIOTests: XCTestCase {
793793 let conn = try PostgresConnection . test ( on: eventLoop) . wait ( )
794794 defer { try ! conn. close ( ) . wait ( ) }
795795
796- let now = Date ( )
797- let uuid = UUID ( )
798796 try prepareTableToMeasureSelectPerformance (
799797 rowCount: 300_000 , batchSize: 5_000 ,
800798 schema:
You can’t perform that action at this time.
0 commit comments