Skip to content

Commit 939b2f3

Browse files
committed
wip
1 parent dba9eef commit 939b2f3

File tree

1 file changed

+77
-75
lines changed

1 file changed

+77
-75
lines changed

Sources/StructuredQueriesCore/Statements/Select+DynamicMemberLookup.swift

Lines changed: 77 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -340,84 +340,86 @@
340340
each J1: Table,
341341
J2: Table
342342
>(
343-
dynamicMember
344-
keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3, C4, C5), From.PrimaryTable, J2>>
343+
dynamicMember keyPath: KeyPath<
344+
From.PrimaryTable.Type, Select<(C2, C3, C4, C5), From.PrimaryTable, J2>
345+
>
345346
) -> Select<(repeat each C1, C2, C3, C4, C5), From, (repeat each J1, J2)>
346347
where Columns == (repeat each C1), Joins == (repeat each J1) {
347-
self + unsafeBitCast(
348-
From.PrimaryTable.self[keyPath: keyPath],
349-
to: Select<(C2, C3, C4, C5), From, J2>.self
350-
)
348+
self
349+
+ unsafeBitCast(
350+
From.PrimaryTable.self[keyPath: keyPath],
351+
to: Select<(C2, C3, C4, C5), From, J2>.self
352+
)
351353
}
352354

353-
// public subscript<
354-
// each C: QueryRepresentable,
355-
// each J1: Table,
356-
// J2: Table,
357-
// J3: Table
358-
// >(
359-
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(), From, (J2, J3)>>
360-
// ) -> Select<(repeat each C), From, (repeat each J1, J2, J3)>
361-
// where Columns == (repeat each C), Joins == (repeat each J1) {
362-
// self + From.PrimaryTable.self[keyPath: keyPath]
363-
// }
364-
//
365-
// public subscript<
366-
// each C1: QueryRepresentable,
367-
// C2: QueryRepresentable,
368-
// each J1: Table,
369-
// J2: Table,
370-
// J3: Table
371-
// >(
372-
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<C2, From, (J2, J3)>>
373-
// ) -> Select<(repeat each C1, C2), From, (repeat each J1, J2, J3)>
374-
// where Columns == (repeat each C1), Joins == (repeat each J1) {
375-
// self + From.PrimaryTable.self[keyPath: keyPath]
376-
// }
377-
//
378-
// public subscript<
379-
// each C1: QueryRepresentable,
380-
// C2: QueryRepresentable,
381-
// C3: QueryRepresentable,
382-
// each J1: Table,
383-
// J2: Table,
384-
// J3: Table
385-
// >(
386-
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3), From, (J2, J3)>>
387-
// ) -> Select<(repeat each C1, C2, C3), From, (repeat each J1, J2, J3)>
388-
// where Columns == (repeat each C1), Joins == (repeat each J1) {
389-
// self + From.PrimaryTable.self[keyPath: keyPath]
390-
// }
391-
//
392-
// public subscript<
393-
// each C1: QueryRepresentable,
394-
// C2: QueryRepresentable,
395-
// C3: QueryRepresentable,
396-
// C4: QueryRepresentable,
397-
// each J1: Table,
398-
// J2: Table,
399-
// J3: Table
400-
// >(
401-
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3, C4), From, (J2, J3)>>
402-
// ) -> Select<(repeat each C1, C2, C3, C4), From, (repeat each J1, J2, J3)>
403-
// where Columns == (repeat each C1), Joins == (repeat each J1) {
404-
// self + From.PrimaryTable.self[keyPath: keyPath]
405-
// }
406-
//
407-
// public subscript<
408-
// each C1: QueryRepresentable,
409-
// C2: QueryRepresentable,
410-
// C3: QueryRepresentable,
411-
// C4: QueryRepresentable,
412-
// C5: QueryRepresentable,
413-
// each J1: Table,
414-
// J2: Table,
415-
// J3: Table
416-
// >(
417-
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3, C4, C5), From, (J2, J3)>>
418-
// ) -> Select<(repeat each C1, C2, C3, C4, C5), From, (repeat each J1, J2, J3)>
419-
// where Columns == (repeat each C1), Joins == (repeat each J1) {
420-
// self + From.PrimaryTable.self[keyPath: keyPath]
421-
// }
355+
// public subscript<
356+
// each C: QueryRepresentable,
357+
// each J1: Table,
358+
// J2: Table,
359+
// J3: Table
360+
// >(
361+
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(), From.PrimaryTable, (J2, J3)>>
362+
// ) -> Select<(repeat each C), From, (repeat each J1, J2, J3)>
363+
// where Columns == (repeat each C), Joins == (repeat each J1) {
364+
// self + From.PrimaryTable.self[keyPath: keyPath]
365+
// }
366+
//
367+
// public subscript<
368+
// each C1: QueryRepresentable,
369+
// C2: QueryRepresentable,
370+
// each J1: Table,
371+
// J2: Table,
372+
// J3: Table
373+
// >(
374+
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<C2, From, (J2, J3)>>
375+
// ) -> Select<(repeat each C1, C2), From, (repeat each J1, J2, J3)>
376+
// where Columns == (repeat each C1), Joins == (repeat each J1) {
377+
// self + From.PrimaryTable.self[keyPath: keyPath]
378+
// }
379+
//
380+
// public subscript<
381+
// each C1: QueryRepresentable,
382+
// C2: QueryRepresentable,
383+
// C3: QueryRepresentable,
384+
// each J1: Table,
385+
// J2: Table,
386+
// J3: Table
387+
// >(
388+
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3), From, (J2, J3)>>
389+
// ) -> Select<(repeat each C1, C2, C3), From, (repeat each J1, J2, J3)>
390+
// where Columns == (repeat each C1), Joins == (repeat each J1) {
391+
// self + From.PrimaryTable.self[keyPath: keyPath]
392+
// }
393+
//
394+
// public subscript<
395+
// each C1: QueryRepresentable,
396+
// C2: QueryRepresentable,
397+
// C3: QueryRepresentable,
398+
// C4: QueryRepresentable,
399+
// each J1: Table,
400+
// J2: Table,
401+
// J3: Table
402+
// >(
403+
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3, C4), From, (J2, J3)>>
404+
// ) -> Select<(repeat each C1, C2, C3, C4), From, (repeat each J1, J2, J3)>
405+
// where Columns == (repeat each C1), Joins == (repeat each J1) {
406+
// self + From.PrimaryTable.self[keyPath: keyPath]
407+
// }
408+
//
409+
// public subscript<
410+
// each C1: QueryRepresentable,
411+
// C2: QueryRepresentable,
412+
// C3: QueryRepresentable,
413+
// C4: QueryRepresentable,
414+
// C5: QueryRepresentable,
415+
// each J1: Table,
416+
// J2: Table,
417+
// J3: Table
418+
// >(
419+
// dynamicMember keyPath: KeyPath<From.PrimaryTable.Type, Select<(C2, C3, C4, C5), From, (J2, J3)>>
420+
// ) -> Select<(repeat each C1, C2, C3, C4, C5), From, (repeat each J1, J2, J3)>
421+
// where Columns == (repeat each C1), Joins == (repeat each J1) {
422+
// self + From.PrimaryTable.self[keyPath: keyPath]
423+
// }
422424
}
423425
#endif

0 commit comments

Comments
 (0)