Skip to content

Commit c4c2d03

Browse files
committed
wip
1 parent 21e0c9a commit c4c2d03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Sources/StructuredQueriesCore/TableColumn.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public protocol _TableColumnExpression<Root, Value>: QueryExpression where Value
1010

1111
/// A type representing a table column.
1212
///
13-
/// This protocol has two concrete conformances, ``TableColumn`` and ``GeneratedColumn``, and
14-
/// provides type erasure over a table's columns. You should not conform to this protocol directly.
13+
/// This protocol provides type erasure over a table's columns. You should not conform to this
14+
/// protocol directly.
1515
public protocol TableColumnExpression<Root, Value>: _TableColumnExpression
1616
where Value: QueryBindable {
1717
/// The name of the table column.

Sources/StructuredQueriesMacros/TableMacro.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,9 @@ extension TableMacro: MemberMacro {
681681
StringLiteralExprSyntax(content: identifier.text.trimmingBackticks())
682682
)
683683
var columnQueryValueType =
684-
(binding.typeAnnotation?.type.trimmed
685-
?? binding.initializer?.value.literalType)
686-
.map { $0.rewritten(selfRewriter) }
684+
(binding.typeAnnotation?.type.trimmed
685+
?? binding.initializer?.value.literalType)
686+
.map { $0.rewritten(selfRewriter) }
687687
var columnQueryOutputType = columnQueryValueType
688688
var isPrimaryKey = primaryKey == nil && identifier.text == "id"
689689
var isColumnGroup = false

Tests/StructuredQueriesTests/NestedTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extension SnapshotTests {
6565
(1)
6666
"""
6767
}
68-
// TODO: Make work?
68+
// TODO: Support composite columns?
6969
// assertQuery(
7070
// Item.insert {
7171
// $0.status

0 commit comments

Comments
 (0)