Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/PostgresNIO/New/Data/Range+PostgresCodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ struct PostgresRange<Bound> {
}
}

extension PostgresRange: Sendable where Bound: Sendable {}

/// Used by Postgres to represent certain range properties
@usableFromInline
struct PostgresRangeFlag {
Expand Down
8 changes: 4 additions & 4 deletions Sources/PostgresNIO/New/VariadicGenerics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ extension PostgresRow {
extension AsyncSequence where Element == PostgresRow {
// --- snip TODO: Remove once bug is fixed, that disallows tuples of one
@inlinable
public func decode<Column: PostgresDecodable>(
public func decode<Column: PostgresDecodable & Sendable>(
_: Column.Type,
context: PostgresDecodingContext<some PostgresJSONDecoder>,
file: String = #fileID,
Expand All @@ -128,7 +128,7 @@ extension AsyncSequence where Element == PostgresRow {
}

@inlinable
public func decode<Column: PostgresDecodable>(
public func decode<Column: PostgresDecodable & Sendable>(
_: Column.Type,
file: String = #fileID,
line: Int = #line
Expand All @@ -137,7 +137,7 @@ extension AsyncSequence where Element == PostgresRow {
}
// --- snap TODO: Remove once bug is fixed, that disallows tuples of one

public func decode<each Column: PostgresDecodable>(
public func decode<each Column: PostgresDecodable & Sendable>(
_ columnType: (repeat each Column).Type,
context: PostgresDecodingContext<some PostgresJSONDecoder>,
file: String = #fileID,
Expand All @@ -148,7 +148,7 @@ extension AsyncSequence where Element == PostgresRow {
}
}

public func decode<each Column: PostgresDecodable>(
public func decode<each Column: PostgresDecodable & Sendable>(
_ columnType: (repeat each Column).Type,
file: String = #fileID,
line: Int = #line
Expand Down