Skip to content
Merged
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
.package(
url: "https://github.com/pointfreeco/swift-structured-queries",
from: "0.22.0",
branch: "optional-selections",
traits: [
.trait(name: "StructuredQueriesTagged", condition: .when(traits: ["SQLiteDataTagged"]))
]
Expand Down
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.4"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.22.0"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", branch: "optional-selections"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"),
],
targets: [
Expand Down
12 changes: 12 additions & 0 deletions Sources/SQLiteData/FetchOne.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@ public struct FetchOne<Value: Sendable>: Sendable {
)
}

/// Initializes this property with a wrapped value.
///
/// - Parameter wrappedValue: A default value to associate with this property.
public init(wrappedValue: sending Value)
where
Value: _OptionalProtocol,
Value: _Selection,
Value.QueryOutput == Value
{
sharedReader = SharedReader(value: wrappedValue)
}

/// Initializes this property with a query associated with the wrapped value.
///
/// - Parameters:
Expand Down